Comments (7)
Hello @sandeepc24,
Do you happen to have the latest version of this library?
from fabulous-simple-elements.
Hi @Zaid-Ajaj
I am using the latest version of the lib.
from fabulous-simple-elements.
Looking at the code I can't say why it's not working, IsVisible
is similar to this property and it works.
from fabulous-simple-elements.
I can't tell for sure why it is not working. Does the equivalent code from the original DSL not disable the button either? i.e. if you write:
View.button(text="whatever", isEnabled=false)
Is the button then still not disabled? if that is the case, then you file an issue on the Fabulous repository instead
from fabulous-simple-elements.
from fabulous-simple-elements.
Hello,
I tried the code inside the SimpleFabimals sample and the button is disabled (as the image shows). Enabling the button also works.
I'm using the latest packages from Fabulous, Xamarin and SimpleElements.
Please, is there any sample code that I can try @sandeepc24 ?
from fabulous-simple-elements.
I got a similar issue today during work, but in my case if the button has the command set then it's always enabled.
let view (model: Model) (dispatch: Msg -> unit) =
View.ContentPage(
content = View.StackLayout(padding = Thickness 20.0, verticalOptions = LayoutOptions.Center,
children = [
Button.button [
Button.Text "Disabled with command"
Button.IsEnabled false
Button.OnClick ignore
]
Button.button [
Button.Text "Disabled without command"
Button.IsEnabled false
]
View.Button(text = "Disabled with command", isEnabled = false, command = ignore)
View.Button(text = "Disabled without command", isEnabled = false)
]))
The code above generates this:
This happens regardless of using SimpleElements or not. I opened the issue in Fabulous repo.
Edit: As stated in the Fabulous issue, this is the default for Xamarin.
from fabulous-simple-elements.
Related Issues (11)
- Add ScrollView HOT 1
- Automate control generation HOT 3
- Rebuild against new Fabulous HOT 5
- Supported elements: overview and progress
- Update to work with latest version of Fabulous 0.41.0 HOT 3
- Strange build issues after add and use Fabulous.SimpleElements HOT 2
- Can not use CollectionView due to System.MissingMethodException HOT 2
- Using simple elements with Fabulous 0.53 fails with link error when deploying to phone (not simulator) HOT 4
- The module/namespace 'Fabulous' from compilation unit 'Fabulous' did not contain the val 'ValLinkagePartialKey(Create)' HOT 4
- Element support for Fabulous extensions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabulous-simple-elements.