github.com/thomasobenaus/nomad@v0.11.1/ui/stories/components/table-configuration.stories.js (about)

     1  import hbs from 'htmlbars-inline-precompile';
     2  
     3  export default {
     4    title: 'Components|Table, Configuration',
     5  };
     6  
     7  export let TableConfiguration = () => {
     8    return {
     9      template: hbs`
    10        <h5 class="title is-5">Table, configuration</h5>
    11        <AttributesTable @attributes={{attributes}} @class="attributes-table" />
    12        `,
    13      context: {
    14        attributes: {
    15          key: 'val',
    16          deep: {
    17            key: 'val',
    18            more: 'stuff',
    19          },
    20          array: ['one', 'two', 'three', 'four'],
    21          very: {
    22            deep: {
    23              key: {
    24                incoming: {
    25                  one: 1,
    26                  two: 2,
    27                  three: 3,
    28                  four: 'surprisingly long value that is unlike the other properties in this object',
    29                },
    30              },
    31            },
    32          },
    33        },
    34      },
    35    };
    36  };
    37  
    38  TableConfiguration.story = {
    39    title: 'Table, Configuration',
    40  };