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
7f1a221a
Unverified
Commit
7f1a221a
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Add link to DBPLitElement
parent
b8b899fe
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/common/README.md
+2
-1
2 additions, 1 deletion
packages/common/README.md
with
2 additions
and
1 deletion
packages/common/README.md
+
2
−
1
View file @
7f1a221a
...
@@ -41,7 +41,8 @@ The English or German text will be shown according to the `lang` attribute.
...
@@ -41,7 +41,8 @@ The English or German text will be shown according to the `lang` attribute.
## Overriding slots in nested web components
## Overriding slots in nested web components
If slots are used in web components then it is best to derive your component class from
`DBPLitElement`
If slots are used in web components then it is best to derive your component class from
[
DBPLitElement
](
https://gitlab.tugraz.at/dbp/web-components/toolkit/-/blob/master/packages/common/dbp-lit-element.js
)
and subscribe to the attribute
`html-overrides`
everywhere you use it with
`subscribe="html-overrides"`
.
and subscribe to the attribute
`html-overrides`
everywhere you use it with
`subscribe="html-overrides"`
.
This way integrators who are using topics or activities are able to globally override these slots
This way integrators who are using topics or activities are able to globally override these slots
...
...
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