API reference for SfListBuilderComponent

import {SfListBuilderComponent} from "@progress/sitefinity-component-framework";


selector: sf-list-builder

Constructors

Properties

addButtonTitle: string

Sets the title attribute of the add button

createField: SfInputComponent

The create input from the template

createFieldName: string

Sets the name attribute of the create input

Sets the list of already create items

newValue: string = stringConstants.EMPTY_STRING

Holds the value of the newly created item

onBlur: EventEmitter<Event> = ...

Emits when the list builder is focused out

onEscapeKey: EventEmitter<Event> = ...

Emits on escape key

onFocus: EventEmitter<Event> = ...

Emits on when the list builder and/or the create input are focused

onItemsChange: EventEmitter<ListBuilderItem[]> = ...

Emits when the items list is changed

showCreateButton: boolean = true

Toggles the visibility of the create button

showCreateField: boolean

Toggles the visibility of the create input

Methods

  • Closes all edit fields

    Returns void

  • Collapses the create field Shows the add button

    Returns void

  • Returns void

  • On blur handler Adds the new value to the list of items and collapses the create field Emits onItemsChange event

    Parameters

    • Optional ev: Event

    Returns void

  • On focus handler

    Parameters

    • Optional ev: Event

    Returns void

  • Executed on escape key pressed Adds the new value to the list of items and collapses the create field Emits onEscapeKey event

    Parameters

    • ev: Event

    Returns void

  • Check if item's value is empty

    Parameters

    • item: string

    Returns boolean

  • Handles item editing Closes all edit fields

    Parameters

    • index: number

    Returns void

  • Persists the new value after editing an item Closes all edit fields

    Parameters

    • index: number

    Returns void

  • Removes item from the list Emits onItemsChange

    Parameters

    • itemValue: string

    Returns void

  • Shows the create field and focuses it Scrolls to the create field

    Parameters

    • shouldClearErrors: boolean
    • shouldFocusField: boolean

    Returns void

Generated using TypeDoc