diff --git a/.pullapprove.yml b/.pullapprove.yml index dfc81cba19d19..f453aaab3c5f2 100644 --- a/.pullapprove.yml +++ b/.pullapprove.yml @@ -11,5 +11,7 @@ reviewers: - mikewheaton - dzearing - cliffkoh + - aditima + - yiminwu name: pullapprove required: 1 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000..c7e68442a0a2b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +node_js: +- '4.2' +before_script: +- npm install -g gulp +script: gulp +deploy: + provider: npm + email: dzearing@microsoft.com + api_key: + secure: kLwlKSvDBoGsYP0p+64JnW5kmSpZfSmt2YxKKwWFcThlsiftbZtUILWFVpPd7A5yymsYuOONZTXppaW00OWaH1Bqs6yVHOn3kVQzE7VK/FtVwGZnqFfF0ea0pYYfto3OIFnyZ86vZ0M8u2A+3FGqjGYT1y3RDbG5GqhURBNd+KBhHrMS+pSaGDgEjskslLeQ+QtQ1/t17j0ZQZeYpxl+qFKislR1djeF0pkOjaoJ8wAUB77E0RhVyKP4cOyvtiF9E8nmnaurNYuabZqFMzOg0PgzMhh6xWv10aGF7jNzgojzCix/grCJR1gdfaE6epPGkrufK1nFjCVb60Z+jHZmuhXrW80Qa9AsMbNkXLlm9g6OLm63Ub2xqNQ5338NteGygWj8FRYe7ZngQ/vAY7SK44oA6+QRJAcpV6ieUFeIN8oEoZ42TJjUuKa6xaRVxuRQs2yobB3GzE4QioWLtqlDo+jbkzc0uFUpQHfErH5pHa7+qHDawiY9sO41lKvds6KfD3PXqHJxdokQh5nRB28k0eN+rFiSyvimDmerqBeG0U2oVJuYGVwGZSMKkOXGoZjZaCOFkPaZcS+HQZ+iDYpqEoB1jF1iYgkknZQLDlprWywjXEy/u2C2Bkd1K31aFCwYxrxkgGquii1ugUFVrjCpNLbeeoKALx5JapDfyAUVF+U= + on: + tags: true + repo: OfficeDev/office-ui-fabric-react diff --git a/src/components/DetailsList/DetailsList.tsx b/src/components/DetailsList/DetailsList.tsx index 501d8d5b11569..f94fafafa5f69 100644 --- a/src/components/DetailsList/DetailsList.tsx +++ b/src/components/DetailsList/DetailsList.tsx @@ -391,7 +391,7 @@ export class DetailsList extends React.Component { - _items = _items || createListItems(500); +export class DetailsListBasicExample extends React.Component { + constructor() { + super(); + + _items = _items || createListItems(500); + this.state = { filterText: '' }; + } + + public render() { + let { filterText } = this.state; + let items = this.state.filterText ? _items.filter(i => i.name.toLowerCase().indexOf(filterText) > -1) : _items; + + return ( +
+ this.setState({ filterText: text }) } + /> + +
+ ); + } + +} - return ( - - ); -}; diff --git a/src/demo/pages/SearchBoxPage/examples/SearchBox.Fullsize.Example.tsx b/src/demo/pages/SearchBoxPage/examples/SearchBox.FullSize.Example.tsx similarity index 100% rename from src/demo/pages/SearchBoxPage/examples/SearchBox.Fullsize.Example.tsx rename to src/demo/pages/SearchBoxPage/examples/SearchBox.FullSize.Example.tsx