Skip to content

Commit

Permalink
added comments for shape of options for all Dropdown examples
Browse files Browse the repository at this point in the history
modified comments to conform to project standards
  • Loading branch information
fobbyal committed Dec 27, 2016
1 parent b82ddaa commit 1c65e84
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { Dropdown } from 'semantic-ui-react'

import { friendOptions } from '../common'

// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]
const DropdownExampleInline = () => (
<span>
Show me posts by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'

import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]


const DropdownExampleMultipleSearchInMenu = () => (
<Dropdown text='Filter Posts' multiple>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Dropdown } from 'semantic-ui-react'

import { stateOptions } from '../common'

// stateOptions = [ { value: 'AL', text: 'Alabama' }, ... ]

const DropdownExampleMultipleSearchSelection = () => (
<Dropdown placeholder='State' fluid multiple search selection options={stateOptions} />
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { countryOptions } from '../common'
// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]

const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple search selection options={countryOptions} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { languageOptions } from '../common'
// languageOptions = [ { text: 'Arabic', value: 'Arabic' }, ... ]

/**
* NOTE: In this example, the dropdown should contain a label on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'

import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]

const DropdownExampleSearchInMenu = () => (
<Dropdown text='Filter Posts' floating labeled button className='icon'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Dropdown } from 'semantic-ui-react'

import { countryOptions } from '../common'

// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]

const DropdownExampleSearchSelection = () => (
<Dropdown placeholder='Select Country' fluid search selection options={countryOptions} />
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Dropdown } from 'semantic-ui-react'

import { stateOptions } from '../common'

// stateOptions = [ { value: 'AL', text: 'Alabama' }, ... ]

const DropdownExampleSearchSelectionTwo = () => (
<Dropdown placeholder='State' search selection options={stateOptions} />
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { friendOptions } from '../common'
// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]


const DropdownExampleSelection = () => (
<Dropdown placeholder='Select Friend' fluid selection options={friendOptions} />
Expand Down

0 comments on commit 1c65e84

Please sign in to comment.