@gitlab/ui
Version:
GitLab UI Components
56 lines (54 loc) • 1.01 kB
JavaScript
const stringTokenList = ['giraffe', 'dog', 'dodo', 'komodo dragon', 'hippo', 'platypus', 'jackalope', 'quetzal', 'badger', 'vicuña', 'whale', 'xenarthra'];
const labelText = 'Animals We Tolerate';
const objectTokenList = [{
id: '1',
title: 'giraffe'
}, {
id: '2',
title: 'dog'
}, {
id: '3',
title: 'dodo'
}, {
id: '4',
title: 'komodo dragon'
}, {
id: '5',
title: 'hippo'
}, {
id: '6',
title: 'platypus'
}, {
id: '7',
title: 'jackalope'
}, {
id: '8',
title: 'quetzal'
}, {
id: '9',
title: 'badger'
}, {
id: '10',
title: 'vicuña'
}, {
id: '11',
title: 'whale'
}, {
id: '12',
title: 'xenarthra'
}];
const oneTokenList = ['dog'];
const actionsList = [{
label: 'Create',
fn: () => {
// eslint-disable-next-line no-alert
window.alert('Create action');
}
}, {
label: 'Edit',
fn: () => {
// eslint-disable-next-line no-alert
window.alert('Edit action');
}
}];
export { actionsList, labelText, objectTokenList, oneTokenList, stringTokenList };