furo-ui5-views #
@furo/ui5 v1.18.0
import '@furo/ui5/src/furo-ui5-views/furo-ui5-views.js';
exports FuroUi5Views js
exports <furo-ui5-views>
custom-element-definition
superclass LitElement
mixes FBP
Summary: Manage views
Description #
furo-ui5-views
allows you to manage custom views. This includes filter settings and table orders.
Tab orders are not implemented at the moment.
The user settings are stored in the local storage
, session data in the session storage
. Feel free to extend the furo-ui5-views
component to store the settings anywhere else by overriding the saveData
method.
furo-ui5-views
manages the view data
|
|
Inject the default
Specs #
You have to import the furo-ui5-specs or add the following muspec to your spec project.
.furo
|
|
µSpecs
|
|
Describe the filterable fields and sortable table columns.
sample data
|
|
Example #
Attributes and Properties #
headerText #
header-text
string
default: 'My Views'
Title of the dialog for “views”
saveAsHeaderText #
save-as-header-text
string
default: 'Save View'
Title of the “save as” dialog.
checkoxSetDefault #
checkbox-set-default
string
default: 'Set as Default'
Checkbox label for set as default on save as dialog.
checkoxApplyAutomatically #
checkbox-apply-automatically
string
default: 'Apply Automatically'
Checkbox label for apply automatically on save as dialog.
manageButtonText #
manage-button-text
string
default: 'Manage'
Button label to open the manage view dialog.
saveButtonText #
save-button-text
string
default: 'Save'
Button label for save.
saveAsButtonText #
save-as-button-text
string
default: 'Save As'
Button label for save as.
cancelButtonText #
cancel-button-text
string
default: 'Cancel'
Button label for cancel action.
manageViewHeaderText #
manage-view-header-text
string
default: 'Manage Views'
Title of the manage-view dialog.
placeholderSearch #
placeholder-search
string
default: 'Search'
placeholder for search fields.
colheaderDefault #
colheader-default
string
default: 'Default'
Column header for “default”.
colheaderApply #
colheader-apply
string
default: 'Apply Automatically'
Column header for “apply automatically”.
colheaderCreator #
colheader-creator
string
default: 'Created By'
Column header for “created by”.
colheaderView #
colheader-view
string
default: 'View'
Column header for “view name”.
okButtonText #
ok-button-text
string
default: 'Ok'
Button label for “Ok” action
viewId #
view-id
string
This is the id vor the view, this key is used to store the search filters in the session storage.
Events #
search-triggered #
at-search-triggered
→ Event
Methods #
showAt #
showAt(ref `` ) ⟹ void
`` → fn-show-at
show opens the view
- ref
setFilterRef #
setFilterRef(ref `` ) ⟹ void
`` → fn-set-filter-ref
set the ref to the filter form
- ref
injectDefault #
injectDefault(data `` ) ⟹ void
`` → fn-inject-default
Inject the default settings. This is a set of predefined filters and columns.
- data
loadData #
loadData() ⟹ string
*
→
fn-load-data
Loads the stored data. Extend and override, if you need another storage mechanism. The data is stored in local storage under the defined view-id.
saveData #
saveData(data `` ) ⟹ string
`` → fn-save-data
Stores the settings. Extend and override, if you need another storage mechanism. The data is stored in local storage under the defined view-id.
- data