Public Sub RemoveXojoBorders(Extends wlb As WebListBox)
// To be called in the Shown event of the control (Me.RemoveXojoBorders)
var removeClasses as string = "$('#" + wlb.ControlID + "_table').removeClass('table-striped table-bordered no-footer');"
var borderRight as string = "$('#" + wlb.ControlID + "_table').prop(""style"").removeProperty(""border-right"");"
var borderTop as string = "$('#" + wlb.ControlID + "_table').prop(""style"").removeProperty(""border-top"");"
wlb.ExecuteJavaScript( removeClasses )
wlb.ExecuteJavaScript( borderTop )
wlb.ExecuteJavaScript( borderRight )
End Sub
They should really make customizing weblistboxes a bit easier⊠the output html code looks like a mess and what should be relatively fast to customize is a chore.
There is a momentary flash of visible borders when the page opens which Iâll attribute to being a windows rendering problem, but I can live with that and the users probably wonât notice. It shows that even though I have the WebListbox hidden until it is populated. It probably wouldnât fkash the borders if the framework didnât try to draw them in the first place. Iâm going to file a feature request for these items as switches in the UI along with not selectable.
Itâs truly amazing how much time people are willing to spend in order to find work-arounds for things that existed for years in Web 1. All this CSS and Javascript effort to accomplish things that should be easily done in Xojo itself⊠all to make Xojo web look more like a webapp.