binding.String
import "fyne.io/fyne/v2/data/binding"
Usage
type String
type String interface {
DataItem
Get() (string, error)
Set(string) error
}
String supports binding a string value.
2.0
func BindPreferenceString
func BindPreferenceString(key string, p fyne.Preferences) String
BindPreferenceString returns a bindable string value that is managed by the application preferences. Changes to this value will be saved to application storage and when the app starts the previous values will be read.
2.0
func BoolToString
func BoolToString(v Bool) String
BoolToString creates a binding that connects a Bool data item to a String. Changes to the Bool will be pushed to the String and setting the string will parse and set the Bool if the parse was successful.
2.0
func BoolToStringWithFormat
func BoolToStringWithFormat(v Bool, format string) String
BoolToStringWithFormat creates a binding that connects a Bool data item to a String and is presented using the specified format. Changes to the Bool will be pushed to the String and setting the string will parse and set the Bool if the string matches the format and its parse was successful.
2.0
func FloatToString
func FloatToString(v Float) String
FloatToString creates a binding that connects a Float data item to a String. Changes to the Float will be pushed to the String and setting the string will parse and set the Float if the parse was successful.
2.0
func FloatToStringWithFormat
func FloatToStringWithFormat(v Float, format string) String
FloatToStringWithFormat creates a binding that connects a Float data item to a String and is presented using the specified format. Changes to the Float will be pushed to the String and setting the string will parse and set the Float if the string matches the format and its parse was successful.
2.0
func IntToString
func IntToString(v Int) String
IntToString creates a binding that connects a Int data item to a String. Changes to the Int will be pushed to the String and setting the string will parse and set the Int if the parse was successful.
2.0
func IntToStringWithFormat
func IntToStringWithFormat(v Int, format string) String
IntToStringWithFormat creates a binding that connects a Int data item to a String and is presented using the specified format. Changes to the Int will be pushed to the String and setting the string will parse and set the Int if the string matches the format and its parse was successful.
2.0
func NewString
func NewString() String
NewString returns a bindable string value that is managed internally.
2.0
func URIToString
func URIToString(v URI) String
URIToString creates a binding that connects a URI data item to a String. Changes to the URI will be pushed to the String and setting the string will parse and set the URI if the parse was successful.
2.1