newsanti
uniGUI Subscriber-
Posts
323 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by newsanti
-
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
-
-
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?
-
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;
-
-
Font: Noto Serif Thai Text: สิ้นงวด Text: รายไตรมาส
-
-
TunimComboBox do not work.
-
Play again will pause.
-
Yes.
-
After play youtube..How to stop playing?
-
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
-
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!
-
How to code for TunimScrollBox?
-
How to config scrollbar color of tunimpanel?
-
Use orientation change event to setting padding to center of panel.
-
I can solved.
-
Problem: Form display position at center only. Mobile2Form.zip