Created
May 21, 2020 21:36
-
-
Save sarimarton/aa4d5e350936f925cb2d3e69d4580aa6 to your computer and use it in GitHub Desktop.
FilterInput
This file contains hidden or 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
FilterInput | |
Init | |
click -> DropdownActiveWithAllOptions | |
DropdownActiveWithAllOptions | |
type -> DropdownFilteredToOne | |
DropdownFilteredToOne | |
typeEnter -> InverseMode | |
InverseMode | |
This file contains hidden or 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
function render (model) { | |
console.log(model) | |
return ( | |
<> | |
</> | |
) | |
} | |
function ThumbContainer (props) { | |
return ( | |
<div style={{ display: 'flex' }}> | |
<Thumbnail onClick={() => props.model.emit('selectMovie')} /> | |
<Thumbnail onClick={() => props.model.emit('selectMovie')} /> | |
<Thumbnail onClick={() => props.model.emit('selectMovie')} /> | |
</div> | |
) | |
} | |
function Thumbnail (props) { | |
return ( | |
<div | |
class="thumbnail" | |
style={{ | |
cursor: 'pointer', | |
margin: '10px', | |
background: '#aaf', | |
width: '50px', | |
height: '50px' | |
}} | |
{ ...props } | |
></div> | |
) | |
} | |
function DetailsPage (props) { | |
return ( | |
<div style={{ | |
display: props.visible ? 'block' : 'none' | |
}}> | |
Details | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment