Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. patrick
    3. Posts
    P
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by patrick

    • RE: Material Input Animations aren't working

      @sherscher it looks like a bug, however I cannot really reproduce it. Can you maybe change this example ( http://tutorial.onsen.io/?framework=react&category=Reference&module=input) to some example that can be reproduced and export it to CodePan. Since this is probably a bug, it would be good to make an issue on Github

      posted in Onsen UI
      P
      patrick
    • RE: Backgroung image in <ons-page>

      @giov you can set the id of the page you want to color:

      <ons-page id='mypage'> ... </ons-page>
      

      and then use the selector in css

      #mypage .page__background { background-color: green}
      

      Here is a codepen example: https://codepen.io/philolo1/pen/xOPYpV

      posted in Onsen UI
      P
      patrick
    • RE: [OnsenUI2/React] React Component: Event handler looses "this" context

      Hi @JesperWe
      If you use classes the functions are not bind. There are a couple of options on what you can do, the first option binding the function to the class in the constructor. This is necessary for classes:

      export class Result extends Component {
        constructor(props) {
          super(props);
          this. handleClick = this. handleClick.bind(this);
        }
      
        handleClick() {
         ons.notification.alert( this.props.result._id );
        }
      
       render() {
           return (  <Col onClick={this.handleClick}>{this.props.result.text}</Col> );
          }
      }
      

      The second option is to use React.createClass, this bind it automatically:

      const Result = React.createClass({
       handleClick: function() {
         ons.notification.alert( this.props.result._id );
       },
       render: function() {
         return (
            <Col 
              onClick={this.handleClick}
            >{this.props.result.text}
            </Col>
         );
       }
      }
      export Result
      
      posted in Onsen UI
      P
      patrick
    • RE: It's all about time: Building a performant Stopwatch with MobX and React - fast

      @PetrMyazin said:

      I think you do not need to make timer variable in TimerStore class as observable. Could you please check?

      reply

      Yes, you are correct, the fact that the inner variables are observable is enough.

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • It's all about time: Building a performant Stopwatch with MobX and React - fast

      MobX React Stopwatch

      In recent posts we spoke a lot about developing React applications with Redux: It enables the users to easily make testable and structured applications. However, writing a Redux application produces a lot of boilerplate code. One framework alternative is MobX, which solves this problem by doing automation using observables.

      Click here to see the original article

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • Improving Your Development Workflow with Webpack, React Hot Loader and Onsen UI

      Onsen UI Hot Reloading

      One of the great things about React is that there are a lot of tools and libraries available. One of the most popular is the React Hot Reloader by Dan Abramov, who also created Redux. The React Hot Reloader enables developers to make code changes and apply these changes without the application losing its state. In this tutorial we will build a small application step by step to demonstrate the power of Webpack and React and also show how OnsenUI users can benefit from it.

      Click here to see the original article

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • Building Cordova apps with React Components for Onsen UI

      Onsen UI environment

      With Cordova it is easy to build functional hybrid apps for all the major mobile platforms, including Android, iOS and Windows Phone. However, making the apps look good is a much harder task. Luckily, with the help of the Monaca CLI and React Components for Onsen UI this became much easier. In this blog post we are going to look at some benefits of using these technologies.

      Click here to see the original article

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • RE: Navigation and Tabs in the Onsen UI React Extension

      @wenbolovesnz said:

      Thank you for this post. However, it would be very appreciated if you could write up a post about how Navigator should work when we have to handle user email password login or Oauth login ?

      reply

      You can use resetPage: https://onsen.io/v2/docs/react/Navigator.html. We are planing on writing more posts about react soon.

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • RE: Wondering the performance when combining react.js

      React Native uses internally the native components, while OnsenUI with Monaca uses the Webview and Phonegap and Cordova. I believe for most applications there is no big distinction in performance between an hybrid app or an native app, but the user experience might be different. Its quite a big topic to open here on the Forum and both native apps and hybrid apps have its pro’s and con’s.

      posted in Onsen UI
      P
      patrick
    • Building a Calculator App with Redux and Onsen UI

      Redux and Onsen UI

      There are many frameworks and concepts around in the JavaScript world. In today’s blog post we are going to write a pure mobile JavaScript application with Onsen UI and Redux, which is a very small but powerful library that enables to write JavaScript applications in a conceptually different way.

      Click here to see the original article

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • RE: React extention's Navigator doesn't work well with react-redux ?

      @sk sry to keep you waiting, your solutions seems to be fine. My blogpost will be only about redux with vanilla js. If you encounter any problems, feel free to report it on github or ask a question in our community.

      posted in Onsen UI
      P
      patrick
    • RE: AJAX Requests won't work with phonegap Build

      @mateusjatenee could you be more specific what your issue is. In general Ajax calls should work. Do they work in your browser? You can have a look at the onsen ui tutorials how one can do it: https://onsen.io/blog/tags/tutorial.html, but you need to be more specific in order to help you.

      posted in Onsen UI
      P
      patrick
    • Build a Places App with Foursquare and Google Maps using Onsen UI and AngularJS

      OnsenUI-Places

      In this tutorial we are going to learn how to use the Foursquare API and Google Static Maps API to create a Places App with Onsen UI and AngularJS. In this app we will be able to search for a particular place and filter the results by food, shops and outdoor places. There will be also an integrated static map which will lead to the Google Website once clicked.

      Click here to see the original article

      posted in Monaca & Onsen UI Articles
      P
      patrick
    • RE: Android back button

      Did you have a look at https://onsen.io/guide/overview.html#HandlingBackButton?

      posted in Onsen UI
      P
      patrick
    • RE: Checkbox CSS

      You are using the reference of onsen1.0 not onsen2.0, please have a look at this url: https://onsen.io/2/index.html

      <ons-list>
         <ons-list-item>
             <label class="checkbox--noborder">
             <input type="checkbox" class="checkbox__input checkbox--noborder__input">
                 <div class="checkbox__checkmark checkbox--noborder__checkmark"></div>
               OFF
             </label>
          </ons-list-item>
      <ons-list-item>
        <label class="checkbox--noborder">
          <input type="checkbox" class="checkbox__input checkbox--noborder__input" checked="checked">
            <div class="checkbox__checkmark checkbox--noborder__checkmark"></div>
            ON
        </label>
      </ons-list-item>
      <ons-list-item>
        <label class="checkbox--noborder">
          <input type="checkbox" class="checkbox__input checkbox--noborder__input" disabled checked="checked">
          <div class="checkbox__checkmark checkbox--noborder__checkmark"></div>
            Disabled
          </label>
        </ons-list-item>
      </ons-list>
      

      I also did a Codepen-Link: http://codepen.io/anon/pen/eJKXYX

      posted in Onsen UI
      P
      patrick
    • RE: How to upgrade from v1 to v2 Onsen.io

      Hi,
      You can start by cloning the Quickstart example https://github.com/OnsenUI/onsenui2-quickstart. Ones you have downloaded the files, you should be able to play with it offline.

      posted in Onsen UI
      P
      patrick