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
3fa7db9e
Unverified
Commit
3fa7db9e
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Add Nextcloud file picker slot documentation
parent
84f441b7
No related branches found
No related tags found
No related merge requests found
Pipeline
#47969
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/file-handling/README.md
+53
-0
53 additions, 0 deletions
packages/file-handling/README.md
with
53 additions
and
0 deletions
packages/file-handling/README.md
+
53
−
0
View file @
3fa7db9e
...
...
@@ -235,6 +235,59 @@ This web component depends on:
-
`--dbp-override-image-nextcloud`
is used to override the cloud image on the connection screen
-
example CSS:
`html { --dbp-override-image-nextcloud: url(/icons/nextcloud.svg); }`
## Nextcloud file picker
The
`dbp-nextcloud-file-picker`
component is currently used by the file sink, file source and
clipboard components. There is a slot you can use to override to provide additional information.
### Slots
You use template tags to inject slots into the web component.
These templates will be converted to div containers when the page is loaded and will not show up before that.
#### auth-info
The content of this slot will be shown below the other text on the Nextcloud file picker connection page.
Example:
```
html
<dbp-nextcloud-file-picker
lang=
"de"
>
<template
slot=
"auth-info"
>
<dbp-translated
subscribe=
"lang"
>
<div
slot=
"de"
>
Fr diese Funktion ist ein Bediensteten Account ntig!
</div>
<div
slot=
"en"
>
An employee account is required for this function!
</div>
</dbp-translated>
</template>
</dbp-nextcloud-file-picker>
```
Most likely you will override this slot across more webcomponents.
Example for
`dbp-file-sink`
:
```
html
<dbp-file-sink
lang=
"de"
html-overrides=
"global-override"
></dbp-file-sink>
<template
id=
"global-override"
>
<template
id=
"dbp-nextcloud-file-picker"
>
<div
slot=
"auth-info"
>
<dbp-translated
subscribe=
"lang"
>
<div
slot=
"de"
>
Fr diese Funktion ist ein Bediensteten Account ntig!
</div>
<div
slot=
"en"
>
An employee account is required for this function!
</div>
</dbp-translated>
</div>
</template>
</template>
```
## Local development
...
...
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