Subscribe to this thread to be notified of B4J library updates.
mElement = mTarget.Append($"<button id="${mName}" class="${mFlavor} ${mClasses}" style="${exStyle}${mStyle}">${BANano.SF(mText)}</button>"$).Get("#" & mName)
Sub MultiButton_Click (event As BANanoEvent)
Dim Ret As Long = BANano.GetSuffixFromID(event.ID)
Dim Allviews As Map = BANano.GetAllViewsFromLayoutArray("MultiLayout", Ret)
If Allviews <> Null Then
Dim mButton As SKButton = Allviews.Get("multibutton") ' always lowercase
mButton.Text = "Multi Button changed!"
End If
End Sub
Sub MultiButton_Click (event As BANanoEvent)
Dim MultiButton As SKButton = Sender
MultiButton.Text = "Multi Button changed!"
End Sub
'Sub RadioTest_Change (event As BANanoEvent, radio As SKRadio)
Sub RadioTest_Change (event As BANanoEvent)
Dim radio As SKRadio = Sender
'Sub SKSwitch1_Change (event As BANanoEvent, switch As SKSwitch)
Sub SKSwitch1_Change (event As BANanoEvent)
Dim switch As SKSwitch = Sender
Dim myArray() As Int
myArray = bObjekt.RunMethod("values", Null).Result
' get the current url
Dim url As String = BANano.GetCurrentUrl
Log(url)
' gets a Map with all the params
Dim m As Map = BANano.GetURLParams(url)
Log(m.Size)
For i = 0 To m.Size - 1
Log(m.GetKeyAt(i) & " = " & m.GetValueAt(i))
Next
' get one param: if not exists return the default value
Log(BANano.GetURLParamDefault(BANano.GetCurrentUrl, "test", "Alain"))
Dim myString As String = "Foo"
If myString.ToLowerCase.Contains("foo") Or myString.ToLowerCase.Contains("bar") Then
Log("!")
End If
var myGraph = new Dygraph(div, data);
DygraphObject.Initialize2("Dygraph", Array(div, data))
Dim UploadedFiles() As String = BANano.GetElement("#fu").GetField("files").Result
Dim UploadedFiles() As String = BANano.GetElement("#fu").ToObject.GetField("files").Result