Jump to content

newsanti

uniGUI Subscriber
  • Posts

    323
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by newsanti

  1. with UnimComboBox1 do ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config) {'+ ' config.listConfig = {'+ ' tpl: new Ext.XTemplate('+ ' ''<tpl for=".">'+ ' <div class="x-boundlist-item" style="{[this.check(values)]}"'+ ' >{val}</div></tpl>'''+ ' ,{ disableFormats: true,'+ ' check: function(values) {'+ ' return "font-family: Noto Serif Thai;"'+ ' }'+ //end..check ' }'+ ' )'+ //end..XTemplate ' }'+ //end..listconfig '}'; //end..beforeInit Not Work. https://fiddle.sencha.com/#fiddle/1bpq&view/editor Ext.application({ name : 'Fiddle', launch : function() { // The data store containing the list of states var states = Ext.create('Ext.data.Store', { fields: ['abbr', 'name'], data : [ {"abbr":"AL", "name":"Alabama"}, {"abbr":"AK", "name":"Alaska"}, {"abbr":"AZ", "name":"Arizona"} ] }); // Create the combo box, attached to the states data store Ext.create('Ext.form.ComboBox', { fieldLabel: 'Choose State', store: states, queryMode: 'local', displayField: 'name', valueField: 'abbr', renderTo: Ext.getBody(), // Mark records with abbr: "AL" with red color tpl: '<tpl for=".">' + '<div class="x-boundlist-item" style="font-family: Noto Serif Thai;" >{name}</div>' + '</tpl>' }); } }); Mobile Combobox.zip
  2. newsanti

    play video

    procedure TsnbxUnimCustomApp001MainForm.Run_PLAY(Sender: TObject); begin var oForm:= TMainmForm(Form); oForm.Image1.Visible:= False; var oFrame:= oForm.UnimHTMLFrame1; oFrame.HTML.Text:= '<!DOCTYPE html> '+ ' <html>'+ ' <body>'+ // ' <video id="video01" width= "100%" height="100%" controls muted loop autoplay>'+ ' <video id="video01" width= "100%" height="100%" muted loop autoplay>'+ ' <source src="files/video01.mp4" type="video/mp4">'+ ' </video>'+ ' </body>'+ ' </html> While Video Playing..if user Click on HTLMFrame (Video), How to Stop Playing? or How to Stop Playing with Code?
  3. How to setting image size (width,height) of TunimVideo.PosterURL?
  4. How to auto start video with tunimvideo? (at ClientSide unimForm.onShow) now, need click then play. procedure TMainmForm.UnimFormAfterShow(Sender: TObject); begin UnimVideo1.Play; //do not work end;
  5. Font: Noto Serif Thai Text: สิ้นงวด Text: รายไตรมาส
  6. After play youtube..How to stop playing?
  7. work.. if code with servermodule.create and mainmodule.create. not work (round3) if code with mainm.create. How to customize css in form at run-time ? (Update MainPain CSS at run-time) it work only refresh browser again. (After add CSS to ServerModule.CustomCSS>>work only new MainPage) runtimeCSS.zip
  8. constructor TMainmForm.Create(AOwner: TComponent); begin inherited; with UniServerModule.CustomCSS do begin Add('.Round1 {'); Add(' border-radius: 50px;'); Add('}'); end; TUniLayoutConfig(Panel1.LayoutConfig).Cls:= 'Round1'; end; Not work!
  9. How to use horizontal scroll of Tunimscrollbox but do not show bar?
  10. How to code for TunimScrollBox?
  11. How to config scrollbar color of tunimpanel?
  12. Use orientation change event to setting padding to center of panel.
  13. Problem: Form display position at center only. Mobile2Form.zip
×
×
  • Create New...