How to use the @alfresco/adf-core.CardViewSelectItemModel function in @alfresco/adf-core

To help you get started, we’ve selected a few @alfresco/adf-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Activiti / activiti-modeling-app / src / app / process-editor / services / cardview-properties / signalScope-cardview-property.ts View on Github external
export function createSignalScopeProperty({ element }: FactoryProps) {
    return new CardViewSelectItemModel({
        label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE',
        options$: of([
            { key: 'global', label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE_VALUES.GLOBAL' },
            { key: 'processInstance', label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE_VALUES.PROCESS_INSTANCE' }
        ]),
        value: ElementHelper.getProperty(element, propertyName) || 'global',
        key: propertyName,
        editable: true,
        data: { id: element.id }
    });
}
github Activiti / activiti-modeling-app / src / app / process-editor / services / cardview-properties / priority-cardview-property.ts View on Github external
export function createPriorityProperty({ element, appConfigService }: FactoryProps) {
    return new CardViewSelectItemModel({
        label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.PRIORITY',
        options$: of(appConfigService.get('process-modeler.priorities')),
        value: ElementHelper.getProperty(element, propertyName),
        key: propertyName,
        editable: true,
        data: { id: element.id }
    });
}
github Activiti / activiti-modeling-app / src / app / process-editor / services / cardview-properties / calledElement-cardview-property.ts View on Github external
export function createCalledElementProperty({ element, store }: FactoryProps) {
    return new CardViewSelectItemModel({
        label: 'APP.PROCESS_EDITOR.ELEMENT_PROPERTIES.ACTIVITY_NAME',
        options$: store.select(selectProcessesKeyLabelArray),
        value: ElementHelper.getProperty(element, propertyName),
        key: propertyName,
        editable: true,
        data: { id: element.id }
    });
}
github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / card-view / card-view.component.ts View on Github external
}),
            new CardViewFloatItemModel({
                label: 'CardView Float Item',
                value: 9.9,
                key: 'float',
                default: 0.0,
                editable: this.isEditable,
                pipes: [{ pipe: this.decimalNumberPipe}]
            }),
            new CardViewKeyValuePairsItemModel({
                label: 'CardView Key-Value Pairs Item',
                value: [],
                key: 'key-value-pairs',
                editable: this.isEditable
            }),
            new CardViewSelectItemModel({
                label: 'CardView Select Item',
                value: 'one',
                options$: of([{ key: 'one', label: 'One' }, { key: 'two', label: 'Two' }]),
                key: 'select',
                editable: this.isEditable
            }),
            new CardViewMapItemModel({
                label: 'My map',
                value: new Map([['999', 'My Value']]),
                key: 'map',
                default: 'default map value'
            }),
            new CardViewTextItemModel({
                label: 'This is clickable ',
                value: 'click here',
                key: 'click',