Giter Club home page Giter Club logo

Comments (8)

xotahal avatar xotahal commented on May 31, 2024

It should hide everything what is on toolbar before the search is activated. I'll check it and fix it if there is any bug ;)

from react-native-material-ui.

sood03 avatar sood03 commented on May 31, 2024

Now I observed, if I put a the notification icon inside the Badge, then on clicking search icon, notification icon is not visible but the badge text is visible.

from react-native-material-ui.

xotahal avatar xotahal commented on May 31, 2024

Could you put here your complete <Toolbar .... /> definition?

from react-native-material-ui.

sood03 avatar sood03 commented on May 31, 2024
<Toolbar
  leftElement="menu"
  centerElement="App"
  searchable={{
    autoFocus: true,
    placeholder: 'Search',
  }}
  rightElement={
    <Badge text="9" style={{ container: {top: 2, right: -1} }} >
      <IconToggle
        name="notifications-active"
        color="#ffffff"
        onPress={this.openNotifications.bind(this)}
      />
    </Badge>
 }
 onRightElementPress={this.openNotifications.bind(this)}
 onLeftElementPress={this.openDrawer.bind(this)}
/>

from react-native-material-ui.

xotahal avatar xotahal commented on May 31, 2024

Thank you, I'll check what goes wrong ;)

from react-native-material-ui.

sood03 avatar sood03 commented on May 31, 2024

Thank you :)

from react-native-material-ui.

sood03 avatar sood03 commented on May 31, 2024

Is it also possible to hide the icons and disable them as well? Now I am also able to click on notification icon while I am typing something in the search box. The user might accidentally click on the icon while he was searching.

from react-native-material-ui.

rborn avatar rborn commented on May 31, 2024

Same for actions, they stay onscreen when search is active 😄

<Toolbar 
	key = "toolbar"
	centerElement = {
        this.props.title
    }
	searchable={{
		autoFocus: true,
		placeholder: 'Search',
		onChangeText: (v) => { console.warn(v); this.refs.beachList && this.refs.beachList.setItems(v)},
		onSearchClosed: () => this.refs.beachList.setItems()

	}}
	rightElement={{
		actions: ['favorite'],
		menu: { labels: this.state.modes},
	}}
	onRightElementPress={(e) => console.error(e)}
/>

screen shot 2016-11-28 at 18 50 31
screen shot 2016-11-28 at 18 50 06

btw, thanks for this amazing library 👍

from react-native-material-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.