Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created December 7, 2018 18:46
Show Gist options
  • Save wadewegner/452f8066248c95dfc3c83ae7687c9a1f to your computer and use it in GitHub Desktop.
Save wadewegner/452f8066248c95dfc3c83ae7687c9a1f to your computer and use it in GitHub Desktop.
public static result: SfdxResult = {
tableColumnData: {
columns: [
{ key: 'id', label: 'ID' },
{ key: 'name', label: 'Name' },
{ key: 'description', label: 'Description' }
]
},
display() {
if (Array.isArray(http://this.data ) && http://this.data .length) {
if (http://this.data .length > 100) {
// special display for large number of results
} else {
this.ux.table(http://this.data , this.tableColumnData);
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment