-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3059: add SplitterMask for onsenui-react
- Loading branch information
1 parent
cef2e37
commit 8b80e2e
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ | |
CHANGELOG | ||
==== | ||
|
||
1.13.2 | ||
--- | ||
### Bug Fixes | ||
* Splitter: Add SplitterMask component. | ||
|
||
1.13.2 | ||
--- | ||
### Misc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import 'onsenui/esm/elements/ons-splitter-mask'; | ||
|
||
import onsCustomElement from '../onsCustomElement'; | ||
|
||
/** | ||
* @original ons-splitter-mask | ||
* @category menu | ||
* @tutorial react/Reference/splitter | ||
* @description | ||
* [en] The SplitterMask element is used as a child element of Splitter. | ||
* It contains the mask content of the page. | ||
[/en] | ||
* [ja][/ja] | ||
* @example | ||
<Splitter> | ||
<SplitterSide | ||
side="left" | ||
width={200} | ||
isSwipeable={true}> | ||
<Page> Page Left </Page> | ||
</SplitterSide> | ||
<SplitterMask> | ||
<Page> Page Content </Page> | ||
</SplitterMask> | ||
<SplitterSide | ||
side="right" | ||
width={300} | ||
collapse={!this.state.showRight} | ||
isOpen={this.state.openRight} | ||
onClose={this.handleRightClose.bind(this)} | ||
onOpen={this.handleRightOpen.bind(this)} | ||
isSwipeable={true}> | ||
<Page> Page Right </Page> | ||
</SplitterSide> | ||
</Splitter> | ||
*/ | ||
const SplitterMask = onsCustomElement('ons-splitter-mask'); | ||
|
||
export default SplitterMask; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* global describe it assert */ | ||
|
||
import React from 'react'; | ||
import {SplitterMask} from '../dist/react-onsenui.js'; | ||
|
||
import rendersToComponent from './testUtil.js'; | ||
|
||
describe('SplitterMask', function() { | ||
rendersToComponent( | ||
<SplitterMask />, | ||
'ons-splitter-mask' | ||
); | ||
}); |