File tree Expand file tree Collapse file tree 1 file changed +0
-51
lines changed
packages/react/src/components/ComboBox Expand file tree Collapse file tree 1 file changed +0
-51
lines changed Original file line number Diff line number Diff line change @@ -354,54 +354,3 @@ AutocompleteWithTypeahead.argTypes = {
354354 ...sharedArgTypes ,
355355 onChange : { action : 'onChange' } ,
356356} ;
357-
358- export const Test = ( args ) => {
359- const items = [
360- {
361- id : 'option-0' ,
362- text : 'An example option that is really long to show what should be done to handle long text' ,
363- } ,
364- {
365- id : 'option-1' ,
366- text : 'Option 1' ,
367- } ,
368- {
369- id : 'option-2' ,
370- text : 'Option 2' ,
371- } ,
372- {
373- id : 'option-3' ,
374- text : 'Option 3 - a disabled item' ,
375- disabled : true ,
376- } ,
377- {
378- id : 'option-4' ,
379- text : 'Option 4' ,
380- } ,
381- {
382- id : 'option-5' ,
383- text : 'Option 5' ,
384- } ,
385- ] ;
386- return (
387- < div style = { { width : 300 } } >
388- < ComboBox
389- id = "carbon-combobox"
390- items = { items }
391- itemToString = { ( item ) => ( item ? item . text : '' ) }
392- titleText = "ComboBox title"
393- helperText = "Combobox helper text"
394- onChange = { action ( 'onChange' ) }
395- initialSelectedItem = { {
396- id : 'option-1' ,
397- text : 'Option 1' ,
398- } }
399- selectedItem = { {
400- id : 'option-1' ,
401- text : 'Option 1' ,
402- } }
403- { ...args }
404- />
405- </ div >
406- ) ;
407- } ;
You can’t perform that action at this time.
0 commit comments