Page tree
Skip to end of metadata
Go to start of metadata

 

Sample Markup

<!-- With Smart Value Lists -->
<smart-combo-editor smart-value-list="Demo-Color" [(smartModel)]="selected.Color"></smart-combo-editor>
 
<!-- Smart Data Source style -->
<smart-combo-editor
    smart-business-entity-name="Consultingwerk.SmartComponentsDemo.OERA.Sports2000.SalesRepBusinessEntity"
    smart-entity-table="eSalesrep"
    display-column-name="RepName" 
    key-column-name="RepName" 
    [(smartModel)]="selected.eSalesrep[0].RepName">
</smart-combo-editor>

 

Description

AttributeDescription
smart-value-listThe name of the Smart Value List to get values from.
value-list-pairAn array containing pairs of elements to display and their values. Example: ["A", "1", "B", "2"] will produce a combo editor with two items, A and B. When A is selected, the value that will be set is 1.
value-listAn array of elements to display. When using this settings, the values will match the displayed text. Example: ["A","B"] will produce a combo editor with two items. When A is selected, the value that will be set is A.
smart-business-entity-nameThe business entity that the Smart Combo Editor's Smart Data Source will use.
smart-entity-tableThe business entity table to be used as a table-ref by the Smart Combo Editor's internal data source.
display-column-nameThe name of the column that the Smart Combo Editor will use to display records.
key-column-nameThe the name of the field that the Smart Combo Editor will use to update the smartModel value when the user selects an item.
[(smartModel)]Used for two-way data binding for the Smart Combo Editor. Use just as you would use the native ngModel attribute.
  • No labels