Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Luca Naterop
    When pushing a page with onsen navigator (I use react), then the state of the original page is destroyed. Is this by design? Wouldn't it make sense to preserve the state, such that when going back the original component still has the same state? I find myself very often in a situation where I want to keep state over a push-pop cycle. Any workarounds?
    Fran Dios
    @rlam3 Thanks for creating it, I just joined. A click listener should be enough for the cards.
    @/all To get real time help, join the discord server: https://discord.gg/JWhBbnE
    @frandiox New to Onsen UI and with vue js .. was wondering if you could provide a quick snippet. Thanks!
    What would be the difference between ons-navigator vs @click?
    My intention is to click on the card and have it display detailView similar in iOS more info.
    Fran Dios
    @rlam3 You can have a look at the vue-onsenui-kitchen sink example, although it would be better if you learn some plain Vue.js first. The link is here: https://onsenui.github.io/vue-onsenui-kitchensink/
    as you see there, a new page is pushed to the navigator when you click on a card
    I guess we can continue this on Discord :sweat_smile:
    Hey Guys, I'm using Action-sheet dynamically and set in up in my controller on Angular 4. But I can't find how to set the click event on dynamic buttons https://onsen.io/v2/api/angular2/ons-action-sheet-button.html
    Can you help me please ?
    Hi all, I am just exploring onsen ui search input
    can any one pls give me an example which is working with search input and below list should reflect based on the search ?
    Hey there. Is there a maximum width on Toolbar-Buttons or why is my top-right button cut off?
    @rawoofpm7 @exophunk Please refer to the following link as we are currently migrating over to Discord. Thanks!
    Anyone online able to help a noob getting setup with React? I keep getting an error that ons is undefined
    <template id="main">
          <div class="center">Card</div>
          <div class="right"><button @click="addToList()">click</button></div>
    <div v-for="item in items">
          <img src="https://monaca.io/img/logos/download_image_onsenui_01.png" alt="Onsen UI" style="width: 100%">
          <div class="title">
            Awesome framework
          <div class="content">
              <v-ons-button><v-ons-icon icon="ion-thumbsup"></v-ons-icon></v-ons-button>
              <v-ons-button><v-ons-icon icon="ion-share"></v-ons-icon></v-ons-button>
    <div id="app"></div>
    new Vue({
      data: {
        items: ['item1', 'item2']
      el: '#app',
      template: '#main',
      methods: {
        addToList: function() {
    im trying to have a v-for loop with a v-ons-card from an array and than push a new item to the array but it doesnt update the v-for loop
    i also tried this with webpack and there it also doesnt work
    okay solved it by just wrapping the v-ons-card in an div
    @frandiox ,hi, i have an error "Unable to preventDefault inside passive event listener invocation." when use the <ons-pull-hook> component with vue2, can you help me?
    @frandiox ps: the error is always occurred in drag event
    @frandiox by the way, there is no this error in onsenui2.4.2 and vue-onsenui2.0.0 but onsenui2.9.1 and vue-onsenui2.5.2, is that a bug in onsenui2.9.1 and vue-onsenui2.5.2?
    Fran Dios
    @imlyuuku1123 Passive event listeners were added on 2.9.0 so I guess it's just a problem there
    I think it will be fixed in onsenui@2.9.3
    In anycase, you can ignore that error for now since it shouldn't break anything
    Yury Zhuravlev
    Do you have plans to support any compile time frameworks like SvelteJS?
    Hello there, Can we hide top navigator menu for pages like login ?
    Charles biselx
    Hi with onsen and vue, can I redirect to an other page without the template are in the same file ?
    like with js : window.location.href
    Hey , Ive a problem with ons-card in angular 4. some cards are invisible no matter what. I'm trying to load them using *ngFor
    <ons-carousel-item *ngFor="let degree of degrees$;index as i ; " id ={{i}}>
    <ons-card style="display:block;">
        <form #degreeCertForm{{i}}>
        <ons-list-header> {{qualificationById[degree.qual_id]}} - {{specializationById[degree.spec_id]}} </ons-list-header>
          <div class="left">
            <ons-icon icon="ion-university"></ons-icon>
          <div class="center">
          <div class="right">
            <ons-button  (click)="getDegreeCert()" modifier="quiet"  > Upload </ons-button>
        <ons-list-item style="display: none;" >
          <div class="center">
          <div class="doc-preview-container">
            <img src="" class="doc-preview" >
        <div class="left">
      <div class="center">
      <input type="file" id="degreCert" accept="image/*" style="display:none;" (change)="onDegreeCertificateInput($event)" #Input{{'qual_' + degree.qual_id + '_spec' + degree.spec_id}} >
      <div >
        <p class="doc-helper-text" > Upload your degree certificate </p>
    could some one help me with this. thank you.
    Jonathan Leek
    I'm having issues using the should-spin, startSpin() functions on an ons-button element. I tried $().startSpin() and $()[0].startSpin() but both give me undefined errors. my button markup looks like this <ons-button id="btn-login" should-spin="true">Login</ons-button>
    @sorokya Please refer to the following link as we are currently migrating over to Discord. Thanks!
    hi,I'm getting below error ,
    onsenui.js:685 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
    anyone have idea
    @frandiox hi, i'm having some issues using the vue for onsenui, i tried to focus the ons-input element in the mounted event handler, it works in android, but doesn't work in ios , can you help me
    I have a question
    I have this line of code
               title: 'Error al iniciar sesión',
               message: 'Parece que alguno de los datos son incorrectos.',
               buttonLabels: 'Aceptar',
               callback: function (answer) {
    Works fine while watching it on browser
    but doesnt work on android device
    When I do cordova run android
    Im testing on android 6.0
    Seems like a lot of people are asking questions and there are no answers. I tried the forums but Facebook login or registration do not work. Is OnsenUI a dead project ?
    Simon Bächler
    I upgraded from 2.6 to 2.9 and now the Checkbox components from react-onsenui do not render in the Karma tests anymore (using Enzyme). They render fine in the Browser. Does anyone have an idea why?