Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
114ef6db
Unverified
Commit
114ef6db
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Update the AppShell slot documentation
parent
900ad15a
No related branches found
No related tags found
No related merge requests found
Pipeline
#47965
failed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/app-shell/README.md
+7
-7
7 additions, 7 deletions
packages/app-shell/README.md
with
7 additions
and
7 deletions
packages/app-shell/README.md
+
7
−
7
View file @
114ef6db
...
...
@@ -58,8 +58,8 @@ The `details` attribute of the event is the language (possible values `en`, `de`
### Slots
You
can give your slots a css class
`slot-hidden`
(which you have to define with
`.slot-hidden { display: none; }`
) to
hide the slot
s w
h
il
e the app shell is loading. This css class will then be removed from the slots by the app shell
.
You
use the template tag to inject slots into the web component.
These template
s wil
l be converted to div containers when the page is loaded and will not show up before that
.
#### Unnamed slot
...
...
@@ -71,33 +71,33 @@ Example: `<app-shell><dbp-loading-spinner></dbp-loading-spinner></app-shell>`
The content of this slot will be shown left in the header and can be used to set a name (e.g. the name of the institution).
Example:
`<app-shell><
div
slot="name">TU Graz<br />Graz University of Technology</
div
></app-shell>`
Example:
`<app-shell><
template
slot="name">TU Graz<br />Graz University of Technology</
template
></app-shell>`
#### logo
The content of this slot will be shown right in the header and can be used to override the logo image.
Example:
`<app-shell><
div
slot="logo"><img alt="logo" src="/path/to/logo.png" /></
div
></app-shell>`
Example:
`<app-shell><
template
slot="logo"><img alt="logo" src="/path/to/logo.png" /></
template
></app-shell>`
#### header
The content of this slot will override the whole content of the header.
You will need to provide your own language selector and auth component.
Example:
`<app-shell><
div
slot="header">My custom header</
div
></app-shell>`
Example:
`<app-shell><
template
slot="header">My custom header</
template
></app-shell>`
#### footer-links
The content of this slot will override the whole content of the footer link section, for example to set custom links.
Example:
`<app-shell><
div
slot="footer-links"><a target="_blank" rel="noopener" class="int-link-external" href="https://my-webpage.com">Link text</a></
div
></app-shell>`
Example:
`<app-shell><
template
slot="footer-links"><a target="_blank" rel="noopener" class="int-link-external" href="https://my-webpage.com">Link text</a></
template
></app-shell>`
#### footer
The content of this slot will override the whole content of the footer, for example to set custom links
and also overwrite the
`dbp-build-info`
tag.
Example:
`<app-shell><
div
slot="footer"><a target="_blank" rel="noopener" class="int-link-external" href="https://my-webpage.com">Link text</a></
div
></app-shell>`
Example:
`<app-shell><
template
slot="footer"><a target="_blank" rel="noopener" class="int-link-external" href="https://my-webpage.com">Link text</a></
template
></app-shell>`
## Topic Metadata
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment