Skip to content

Commit 254f582

Browse files
committed
custom attribute demo app change
1 parent cfade01 commit 254f582

File tree

6 files changed

+14
-22
lines changed

6 files changed

+14
-22
lines changed

demo/pages/HomePage/PicklistBaseCustomSection.jsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const CustomListItemLabel = React.createClass( {
4141
this.props.isSelected?<Icon name='like' position='left' category='utility' />:null
4242
}
4343
{
44-
this.props.data.title
44+
this.props.data.strongLabel
4545
}
4646
</section>;
4747
}
@@ -87,16 +87,16 @@ module.exports = React.createClass( {
8787
<div className="slds-p-vertical--large">
8888
<SLDSPicklistBase
8989
options={[
90-
{label:'A Option Option Super Super Long',value:'A0',title:'SUPER TITLE B0'},
91-
{label:'B Option',value:'B0',title:'SUPER TITLE B0'},
92-
{label:'C Option',value:'C0',title:'SUPER TITLE C0'},
93-
{label:'D Option',value:'D0',title:'SUPER TITLE D0'},
94-
{label:'E Option',value:'E0',title:'SUPER TITLE E0'},
95-
{label:'A1 Option',value:'A1',title:'SUPER TITLE A1'},
96-
{label:'B2 Option',value:'B1',title:'SUPER TITLE B1'},
97-
{label:'C2 Option',value:'C1',title:'SUPER TITLE C1'},
98-
{label:'D2 Option',value:'D1',title:'SUPER TITLE D1'},
99-
{label:'E2 Option Super Super Long',value:'E1',title:'SUPER TITLE E1'},
90+
{label:'A Option Option Super Super Long',value:'A0',strongLabel:'SUPER TITLE B0'},
91+
{label:'B Option',value:'B0',strongLabel:'SUPER TITLE B0'},
92+
{label:'C Option',value:'C0',strongLabel:'SUPER TITLE C0'},
93+
{label:'D Option',value:'D0',strongLabel:'SUPER TITLE D0'},
94+
{label:'E Option',value:'E0',strongLabel:'SUPER TITLE E0'},
95+
{label:'A1 Option',value:'A1',strongLabel:'SUPER TITLE A1'},
96+
{label:'B2 Option',value:'B1',strongLabel:'SUPER TITLE B1'},
97+
{label:'C2 Option',value:'C1',strongLabel:'SUPER TITLE C1'},
98+
{label:'D2 Option',value:'D1',strongLabel:'SUPER TITLE D1'},
99+
{label:'E2 Option Super Super Long',value:'E1',strongLabel:'SUPER TITLE E1'},
100100

101101
]}
102102
value='C0'

dist/design-system-react.js

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/SLDSPicklistBase/list-item.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ module.exports = _react2['default'].createClass({
5656
};
5757
},
5858

59-
componentDidMount: function componentDidMount() {
60-
console.log('!!! this.props.labelRenderer: ', this.props.labelRenderer);
61-
},
62-
6359
handleClick: function handleClick(e) {
6460
e.preventDefault();
6561
e.stopPropagation();

0 commit comments

Comments
 (0)