Questions tagged [bindable]

The Bindable annotation should be applied to any getter accessor method of an Observable class. Bindable will generate a field in the BR class to identify the field that has changed.

93 questions
2
votes
2 answers

custom BindableProperty of HeightRequest for my custom control in xamarin.forms

I have created one custom control for wrappanel.but it shows extra space. so i am trying to create BindableProperty of HeightRequest for control and set it according to content to remove extra space. this is how i created BindableProperty of…
Neelam Prajapati
  • 3,764
  • 3
  • 28
  • 62
2
votes
2 answers

Aurelia: How to observe a specific property of a bound object (custom attribute)

I am trying to observe a change event of a object specific property bound to a custom attribute. I use the bindable tag for this. The object var information = { name: 'foo', description: 'bar', age: 12 }; The element
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
2
votes
2 answers

Behaviour - bindable property

I've created a behavior for validating email input. Following numerous examples on the web. As you can see my behavior has two bindable properties, one is IsValid and second is ErrorMessage. On text change, app runs regex validation and without any…
James
  • 213
  • 1
  • 13
2
votes
1 answer

What Android-Application Components can bind to a Service?

I just got the Exception BroadcastReceiver components are not allowed to bind to services. I found nothing about this online, so I am asking if anyone can provide a List of Components that are actually able to bind to a service, because I…
Dominik Seemayr
  • 830
  • 2
  • 12
  • 30
2
votes
4 answers

Flex 3 Binding problem

I have a custom ActionScript class: package EntityClasses { import mx.collections.ArrayCollection; [RemoteClass(alias="tkatva.tt.entities.CompanyInfo")] [Bindable] public class CompanyInfo { public var companyInfoId:int; public var…
Tuomas
  • 21
  • 2
2
votes
2 answers

Using ASDoc with Bindable metatag and mxml

I am creating the documentation of my flex project using ASDoc and having some issues with the bindable metatag. ASDoc doesn't document public Bindable values unless the Bindable tag has an event name associated with it. For example: //This is…
Amarghosh
  • 58,710
  • 11
  • 92
  • 121
2
votes
3 answers

JQuery: Is there a way to do Flex-style data bindings?

Several new UI/Query frameworks allow you to "bind" UI elements to data structures. When data in the structure is updated, the change propagates to the UI element, automatically. Some examples of this include the [Bindable] tag in Adobe Flex, and…
jes5199
  • 18,324
  • 12
  • 36
  • 40
2
votes
2 answers

Some [Bindable] properties in Flex work, some don't

Problem solved, see below Question I'm working in Flex Builder 3 and I have two ActionScript 3 classes (ABC and XYZ) and a Flex MXML project (main.mxml). I have an instance of XYZ as a property of ABC, and I want XYZ's properties to be visible…
Andrew Keeton
  • 22,195
  • 6
  • 45
  • 72
1
vote
2 answers

Can @Bindable variable's change in different thread can be reflected the corresponding UI element?

I'm learning to implement a count down timer with GUI showing the time reduction. I'm using Groovy's @Bindable in the hope that the change of time reduction can be displayed automatically in the corresponding UI label. The reduction of the…
Yu Shen
  • 2,770
  • 3
  • 33
  • 48
1
vote
1 answer

How do I add sections to a binding array of structs that I can update?

I've been looking for a few days and I'm still can't find a solution. I'd like to group a list of structs that are binding in a list, and still be able to update them. In the example below I'd like to be able to toggle isOn and the bindable array be…
LateNate
  • 763
  • 9
  • 22
1
vote
3 answers

Handling data flow in iOS 17 and using observed variables inside a TextField

I'm trying to migrate to iOS 17 using @Observable. I have a global view model of the app where I call an Exam model with all the values ​​I need inside. According to Apple guidelines I'm using my view model like this import Foundation import…
kAiN
  • 2,559
  • 1
  • 26
  • 54
1
vote
0 answers

How to use a changed variable value when the previous value is already used?

I am trying to use a variable with a base value, this variable is used multiple times in my code. Later when a button is clicked I want to use another value. So when the value of this variable changes things have to change as well, sort of binding.…
kevin
  • 21
  • 4
1
vote
0 answers

Change programmatically the Rows and Columns in Xamarin Forms

I'm filling a grid with an observablecollection from my viewmodel but I want to get that grid formatted as follows: (Note my model has no row/column information just calls the posts as shown in the code) My code now looks like this:
Herb
  • 119
  • 2
  • 16
1
vote
2 answers

Passing filtered @Bindable objects to multiple views in SwiftUI

I’m trying to pass a filter array to multiple views, but the filtering is not working. If I remove the filter, you can pass the array to the next view, but that leads to another error during the ForEach loop. I've posted all the code below. Does…
Richard Witherspoon
  • 4,082
  • 3
  • 17
  • 33
1
vote
3 answers

Flex watch bindable property other class

I'm creating an application using Flex 4. When the app is started, it reads a XML file and populate objects. The .send() call is asynchronous, so I would want to listen/watch to this populated object, and when it has finished, dispatch an event for…
Nicola
  • 425
  • 4
  • 17