Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. samphan
    S
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    samphan

    @samphan

    0
    Reputation
    9
    Posts
    972
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    samphan Follow

    Posts made by samphan

    • RE: List

      I usually wonder whether I can use <List> without dataSource/renderRow, but specifying <ListItem> manually. It works but I’m not sure if it is legal (e.g. may not work in future versions) because it’s not mentioned in this tutorial. Then I found the pattern in the tutorial. So I guess it is legal.

      <Ons.List>
        <Ons.ListHeader>Bindings</Ons.ListHeader>
        <Ons.ListItem>Vue</Ons.ListItem>
        <Ons.ListItem>Angular</Ons.ListItem>
        <Ons.ListItem>React</Ons.ListItem>
      </Ons.List>
      
      posted in React
      S
      samphan
    • RE: ListItem

      Can I use onClick attribute?

      I’ve used it in my project and it works. But it’s not mentions in the Props table above.

      posted in React
      S
      samphan
    • RE: Input

      Most attributes that can be used for a normal <input> element can also be used on the <ons-input> element…

      This means I can set id and name attributes for <Input>, right?

      posted in React
      S
      samphan
    • How to reach to a popover from Enzyme in full DOM (mount) rendering test

      My React/Meteor project use Enzyme for unit testing. In a full DOM rendering test which I mount() the top-level App component, it is rendered correctly. However, when I try to navigate, using Enzyme’s simulate(‘click’), down to a popover. I realize that the popover is created elsewhere, not in the same DOM, its shadow-dom, I guess. However, I need to click on a list-item inside the popover.

      Is it possible to reach to the popover using Enzyme or web api?

      0_1490443022766_2017-03-25_17-51-35.png

      posted in Onsen UI
      S
      samphan
    • Where is the TOC of these React component guides?

      I found these component guides by Googling:-

      • https://onsen.io/v2/docs/react/page.html
      • https://onsen.io/v2/docs/react/toolbar.html
      • https://onsen.io/v2/docs/react/navigator.html

      But I can’t find the page where they’re listed. Their up link go to https://onsen.io/v2/docs/react.html which only lists component references. Am I missing something?

      posted in Onsen UI
      S
      samphan
    • RE: Upgrade to Chrome 54, got DOMException in onsen-modal/animator.js

      @Fran-Diox Cool! Thanks.

      posted in Onsen UI
      S
      samphan
    • Upgrade to Chrome 54, got DOMException in onsen-modal/animator.js

      My existing code stop running when upgrade to Chrome 54 (on Ubuntu), with DOMException: Failed to execute 'createElement' on 'Document': The result must not have attributes, in ons-modal/animator.js.

      According to http://stackoverflow.com/questions/40181683/failed-to-execute-createelement-on-document-the-result-must-not-have-childre-childr), Chrome 54 seems to be the first version to provide native createEement().

      posted in Onsen UI
      S
      samphan
    • RE: 'CustomElements is not defined' in react-onsenui.js

      @Fran-Diox work like a charm! Thank you. ^_^

      posted in Onsen UI
      S
      samphan
    • 'CustomElements is not defined' in react-onsenui.js

      I’ve just started to use react-onsenui on Meteor. The simple app run fine until yesterday when I started to use <Navigator />. The browser stop at the exception:

      CustomElements is not defined at Page.componentDidMount in react-onsenui.js

      I have no idea what’s happening. I guess CustomElements is a global and is assumed to be already initialized somewhere. Maybe something wrong about how I import modules (using ES6 module support on Meteor). But I do import both onsenui and react-onsenui as describe in the React guide.

      Any idea what’s wrong here?

      Environment:-

      • react-onsenui@0.6.2
      • onsenui@2.0.0
      • react@15.3.2
      • typescript@2.1.0-dev.20160824
      • Meteor 1.4.1.1
      posted in Onsen UI
      S
      samphan