List Form Component
Last updated
Was this helpful?
Last updated
Was this helpful?
(part of package 'Servoy Core') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent
listformcomponent_doc.js
This is a reference page; many components have detailed usage guides here.
Specifies the form that is embedded within the list form component. Type:
Specifies if the list form component allows editing of entries. Type: Default Value: true
Reference to the foundset bound to the component for displaying data. Type: JSFoundset Default Value: {"foundsetSelector":""}
Determines the layout mode of the list form component, such as 'cardview' or 'listview'. Type: String
This property sets the height of the listformcomponent when using scrolling mode in a responisive form. Adding a listformcomponent in a flex-content layout and setting responsiveHeight property to 0, let the listformcomponent grow up to 100% height of parent element (see more on flex-layout here: https://github.com/Servoy/12grid/wiki/Flexbox-Layout ). Used with other containers than flex-content layout in order to grow the listformcomponent to 100% height, the parent element must have a known height. When responsiveHeight is set to -1, the LFC will auto-size it's height to the number of rows displayed - in this case there is no vertical scrollbar and all rows are rendered Type: Number Default Value: 300
This property in only used when the component is placed in a responsive form; it is ignored in absolute; when used in paging mode (client property UICONSTANTS.LISTFORMCOMPONENT_PAGING_MODE = true) it sets the number of records displayed in a single page; when used in scrolling mode (which is the default mode) it is only used when pageLayout is set to cardiew, and it sets the maximum records displayed in a single row of the listformcomponent. Type: Number
Triggered when a list item is clicked.
Parameters:
Triggered when the foundset selection changes.
Parameters:
{JSEvent} event Contains details about the selection change.
CSS style class for styling the pagination controls of the component. Type:
Data provider indicating whether each row is editable. Type:
Data provider indicating whether each row is enabled. Type:
CSS style class applied to individual rows in the list form component. Type:
Data provider used to determine the CSS style class for each row dynamically. Type:
In case rowStyleClassDataprovider or rowStyleClass are used, make sure that the selection styleclass definition is last in the solution stylesheet, to avoid overwriting it. .listitem-info { background-color: blue; } .listitem-selected { background-color: orange; } Type:
CSS style class for custom styling of the list form component. Type: Default Value: "svy-listformcomponent"
Defines the tab order for navigating through the component. Type:
Controls the visibility of the list form component. Type: