Foundset List
Last updated
Was this helpful?
Last updated
Was this helpful?
(part of package 'Advanced Renderers') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent
A Custom List Component that displays a foundset of records with custom rendering, drag & drop sorting, and HTML customization.
This is a reference page; many components have detailed usage guides here.
When set to true, allows to drag records into another FoundSet List element Type: Boolean Default Value: false
Customize options for the drag n'drop and sortable Type: CustomType<customrenderedcomponents-foundsetlist.sortableOptions>
When set to true, allows to drop records from another FoundSet List element Type: Boolean Default Value: false
Flag indicating whether the list is enabled for user interaction. Type: Default Value: true
The foundset of records bound to this component. Type: JSFoundset Default Value: {"foundsetSelector":""}
Flag indicating whether the list height adjusts dynamically based on its content. Type: Boolean Default Value: false
Responsive height for the list component in pixels. Type: Number Default Value: 500
When true, the list displays records in reverse order. Type: Boolean Default Value: false
Option whether text is shown as sanitized html or trusted html (as is). Type: String Default Value: "html"
When set to true, allows to reorder records within the FoundSet List element using drag & drop Type: Boolean Default Value: false
Called when the mouse is clicked on a list entry
Parameters:
Called upon double click on a list entry
Parameters:
Called when records dragged from another FoundSet List are dropped into this FoundSet list element. You are responsible to persist the changes for the affected records. Make sure to persist any change for the affected record and call loadRecords for the affected foundsets. If you don't the FoundSet List may go into an incosistent state.
Parameters:
{JSEvent} event The JSEvent for this element
{Array<Number>} oldIndicies The original indexes, when drag started, of the dropped records
{Array<Number>} newIndicies The new indexes of records upon drop
{Array<JSRecord>} recordsMoved The records dragged and dropped
{Array<JSRecord>} recordsMovedTo The records whom have been shifted upon drop
Called when the mouse is clicked on the optional firstItemHtml
Parameters:
Called when the mouse is clicked on the optional lastItemHtml
Parameters:
Called upon right click on a list entry
Parameters:
Called when FoundSet List records are reordered by drag&drop. You are responsible to persist the changes for the affected records. Make sure to persist any change for the affected record and call loadRecords for the affected foundsets. If you don't the FoundSet List may get into an incosistent state
Parameters:
{JSEvent} event The JSEvent for this element
{Array<Number>} oldIndicies The original indexes of the moved records
{Array<Number>} newIndicies The new record indexes
{Array<JSRecord>} recordsMoved The records sorted
{Array<JSRecord>} recordsMovedTo The records whom have been shifted upon sort end
Adds the given style class to all items in the list's children that match the selector. Note that tag selectors are not supported.
Parameters:
Removes the given style class from all items in the list's children that match the selector. Note that tag selectors are not supported.
Parameters:
Configuration options for sortable behavior in the FoundSet List. scripting type: CustomType<customrenderedcomponents-foundsetlist.sortableOptions>
animation
Animation duration in milliseconds for drag transitions.
Type: int
handle
CSS style class used to define the drag handle.
multiDrag
When true, allows multiple records to be dragged simultaneously.
Type: boolean
Default Value: false
multiDragKey
The key used to enable multiple selection during drag (e.g. CTRL).
Type: string
Default Value: "CTRL"
A client-side function used to render each entry in the list. Type:
Data provider used to determine the CSS style class for each list entry. Type:
Optional HTML content to be displayed for the first item in the list. Type:
Optional HTML content to be displayed for the last item in the list. Type:
CSS style class applied to a selected list entry. Type:
CSS style classes applied to the list component. Type:
Data provider used to determine the tooltip content for each list entry. Type:
This is a client side function that gets 2 arguments: first is the data-target (this should be set in the entry renderer) and second is the entry of the data Type:
Flag indicating whether the list component is visible. Type:
Type: