Codename One multiline Picker? - codenameone

is there a way to display the selected text as multiline in a Picker component ?
The Picker component extends from Button and it doesn't seem to be a simple way to display the text as multiline.

You can clone the Picker class and call it something like CustomPicker that extends SpanButton instead of Button.
You only have to change Button to SpanButton.
SpanButton is a container that has TextArea in it to display multiline text.
Take note of setUIID() that behaves differently with SpanButton and applies the uiid to the container and not the text. Call setTextUIID() to apply uiid to text.
Although this will show the selected string as a multiline text, you shouldn't expect a multiline display of options in the Picker Dialog that popup. It is platform dependent and controlled natively.

Related

how to change MaterialUI form dialog-box background color keeping text field color white

I want to change the Material-UI form dialog box background color but in doing so the text-field color is also changing...what should I do?
You can override the style of the component, here are a few links to the MUI docs for reference.
Here's the link to React Dialogue's override CSS documentation. Here is a second link to overriding/ styling the component, and a third.

How to get scroll height of multine textField (office ui fabric react)

I am trying to get the scroll height of the multi-line text field. I have used office UI fabric react TextField.
I have tried to get the TextField scroll height in the ComponentDidUpdate() /jQuery, but it always returns scrollHeight as 0.
AutoHeightAdjust property works fine when I am entering input in the TextField. But, when I am trying to show the data from the state in the TextField it does not fit to the size of the content. That's where the real problem is.
This is my tag:
<TextField disabled={this.isDisabled} autoAdjustHeight value={this.state.Action} onChanged={this.handleAction} multiline resizable={true} rows={6}/>

Override styling for md-autocomplete (change clear button icon)

I have a component that contains an md-autocomplete. This component is essentially being used as a searchable select list.
So, I'd like to change the icon of the clear-button from the 'X' to a down arrow.
I've tried the solution mentioned here, but that doesn't work for me, because I need the button to remain clickable.
Is there a way I can override the button styling in the component's CSS to specify a different icon to be used?

Is it possible to add tooltip on material ui chip component?

The requirement is I have label eg: Color and value eg: orange.
So I want to show label as tooltip and value as chip. Is it possible to do with chip? if not is there any other way that I can achieve this.
I am using material-ui version v0.18.7.
The easiest way to get a basic tooltip is to use the title attribute:
<Chip title="Color">
Orange
</Chip>
If you want a more powerful tooltip, you can use the Tooltip component added material-ui v1. That will let you have more control over the placement and appearance of the tooltip.

Display Text - Diplay Field

I want to display a static text in my app which would be a tab in my tabpanel...
I can only find textfield with input... how do I get a textfield no input to show?
In sencha architect
I think you're looking for label component: http://docs.sencha.com/extjs/4.0.7/#!/api/Ext.form.Label
Since you clarified that this is for Sencha Touch and not ExtJs, the only way to do is to use standard Ext.Component element and specify html property of it.

Resources