import * as React from 'react'; import { ActionBox, Button, ButtonBar, Card, Column, Divider, Header, Icon, List, ListItem, Row, ScrollContainer, Spacer, Spinner, Table, Text, Tray, TrayItem, TrayOverflow, } from '../web' const doNothing = (e: React.MouseEvent) => e.preventDefault(); const EXAMPLE_TRAY_KEY = 'EXAMPLE_TRAY_KEY' export class TrayExample extends React.Component { public renderTray() { const showTrayOverflow = true; return ( CS {showTrayOverflow ? ( {Array.apply(null, { length: 20 }) .map(Number.call, Number) .map((e: any) => ( ))} ) : null} ) } public render(): JSX.Element { const explode = () => new Promise((resolve) => { console.log('confirm clicked') setTimeout( () => { console.log('"saved"') alert('goodbye...') resolve(true) }, 500, ) }) return ( {this.renderTray()}
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
This is a Card This is a disabled This is an active Card row with actionbox null, iconProps: { rotate: 180 }, }, { className: 'map', icon: 'a-b', tooltip: 'Show on the map', onClick: () => null, disabled: true, }]} /> An example paragraph text foo bar baz
) } }