1.0.3 • Published 6 years ago

@agile-central-technical-services/utils-field-picker v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

utils-field-picker

This is a screenshot

Example usage

To use the control on a page:

controlsArea.add({
    xtype: 'tsfieldpickerbutton',
    modelNames: [modelName],
    context: this.getContext(),
    stateful: true,
    stateId: this.getViewType() + 'fields', // columns specific to type of object
    alwaysSelectedValues: alwaysSelectedColumns,
    listeners: {
        fieldsupdated: function(fields) {
            // fields is the currently selected fields from the picker
        },
        scope: this
    }
});

To get the current selected fields:

this.down('tsfieldpickerbutton').getFields()

Developer Notes

To Update 1. npm version patch - This will update the package.json to a new version and create a git tag (e.g. v1.0.1). It will also run the postversion script to push the changes and tag to GitHub. 2. npm publish --access public - This will publish the new version to npmjs.org 3. Create the new release in `utils-field-picker/releases'