'injectjs
private Sub InjectJS
Dim script1 As String = $"$('#${ID}div').floatingActionButton({
hoverEnabled: ${iif(hoverEnabled,"true","false")},
direction:'${Direction}',
toolbarEnabled: ${iif(toolbarEnabled,"true","false")}});"$
Dim script2 As String = $"var inst${ID} = document.getElementById('${ID}');
var ${Instance} = M.FloatingActionButton.getInstance(inst${ID});"$
End Sub
'iif method
private Sub iif(Expression2Evaluate As String, ReturnIfTrue As Object, ReturnIfFalse As Object) As Object
If Expression2Evaluate = True Then
Return ReturnIfTrue
Else
Return ReturnIfFalse
End If
End Sub