Page 1 of 1

ionic framwork

Posted: Sun May 03, 2020 8:11 am
by ebelouet
HI,

Is it possible to use ionic framwork with spiderbasic and do you know where can we find example ?

Sincerely
Eric

Re: ionic framwork

Posted: Sun May 03, 2020 12:05 pm
by Peter

Code: Select all

EnableExplicit

Procedure ButtonEvent()
  MessageRequester("Hello!")
EndProcedure

! $('<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>').appendTo("head");
! $('<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>').appendTo("head");
! $('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css"/>').appendTo("head");

Define HTML.s

HTML = "<ion-app>" + 
       "  <ion-content text-center>" + 
       "    <h1>Basic usage</h1>" + 
       "    <ion-button onclick='f_buttonevent()'>Click me</ion-button>" + 
       "  </ion-content>" + 
       "</ion-app>"

! $(v_html).appendTo("body");

Re: ionic framwork

Posted: Sun May 03, 2020 12:51 pm
by ebelouet
thank a lot.
Eric

Re: ionic framwork

Posted: Mon May 04, 2020 5:14 pm
by munfraid
Thanks, Peter, this is interesting!