A Spec widget to hold non-editable multi-lines text?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

A Spec widget to hold non-editable multi-lines text?

Julien Delplanque
Hello,

I wonder if there is a Spec widget to hold non-editable multi-line text?

There is TextInputFieldModel but the text is editable.

Thanks in advance,

Julien

Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

jfabry
Hello Julien,

have you tried configuring it with enabled: false ?

> On Feb 24, 2016, at 13:24, Julien Delplanque <[hidden email]> wrote:
>
> Hello,
>
> I wonder if there is a Spec widget to hold non-editable multi-line text?
>
> There is TextInputFieldModel but the text is editable.
>
> Thanks in advance,
>
> Julien
>
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile


Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Julien Delplanque
Hi,

Thank you it works as expected :) Maybe this should be documented in the class comment of TextInputFieldModel?

Regards,

Julien

On Wed, Feb 24, 2016 at 7:49 PM, Johan Fabry <[hidden email]> wrote:
Hello Julien,

have you tried configuring it with enabled: false ?

> On Feb 24, 2016, at 13:24, Julien Delplanque <[hidden email]> wrote:
>
> Hello,
>
> I wonder if there is a Spec widget to hold non-editable multi-line text?
>
> There is TextInputFieldModel but the text is editable.
>
> Thanks in advance,
>
> Julien
>
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile



Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Peter Uhnak
Maybe this should be documented in the class comment of TextInputFieldModel?

This is a feature of AbstractWidgetModel, so it applies to all widgets (buttons, texts, selects, ...).

 Peter
Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Julien Delplanque
Indeed but I mean, I was not able to deduce the fact that to have a
widget holding not-editable multi-line text I have to use

TextInputFieldModel and use #enabled: message...

But maybe there is already documentation about that?

Julien


On 25/02/16 09:58, Peter Uhnák wrote:
>> Maybe this should be documented in the class comment of
>> TextInputFieldModel?
>>
> This is a feature of AbstractWidgetModel, so it applies to all widgets
> (buttons, texts, selects, ...).
>
>   Peter
>


Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Peter Uhnak
I'm sure it's documented somewhere… in any case new Spec documentation is emerging so let's not forget to make sure it's there.

Peter

On Thu, Feb 25, 2016 at 10:49 AM, Julien Delplanque <[hidden email]> wrote:
Indeed but I mean, I was not able to deduce the fact that to have a widget holding not-editable multi-line text I have to use

TextInputFieldModel and use #enabled: message...

But maybe there is already documentation about that?

Julien



On 25/02/16 09:58, Peter Uhnák wrote:
Maybe this should be documented in the class comment of
TextInputFieldModel?

This is a feature of AbstractWidgetModel, so it applies to all widgets
(buttons, texts, selects, ...).

  Peter




Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Julien Delplanque
Nice, can't wait to read it :)

Julien

On 25/02/16 10:58, Peter Uhnák wrote:

> I'm sure it's documented somewhere… in any case new Spec documentation is
> emerging so let's not forget to make sure it's there.
>
> Peter
>
> On Thu, Feb 25, 2016 at 10:49 AM, Julien Delplanque <[hidden email]>
> wrote:
>
>> Indeed but I mean, I was not able to deduce the fact that to have a widget
>> holding not-editable multi-line text I have to use
>>
>> TextInputFieldModel and use #enabled: message...
>>
>> But maybe there is already documentation about that?
>>
>> Julien
>>
>>
>>
>> On 25/02/16 09:58, Peter Uhnák wrote:
>>
>>> Maybe this should be documented in the class comment of
>>>> TextInputFieldModel?
>>>>
>>>> This is a feature of AbstractWidgetModel, so it applies to all widgets
>>> (buttons, texts, selects, ...).
>>>
>>>    Peter
>>>
>>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

stepharo
In reply to this post by Julien Delplanque


Le 25/2/16 08:15, Julien Delplanque a écrit :
Hi,

Thank you it works as expected :) Maybe this should be documented in the class comment of TextInputFieldModel?

please send a change.

Stef

Regards,

Julien

On Wed, Feb 24, 2016 at 7:49 PM, Johan Fabry <[hidden email]> wrote:
Hello Julien,

have you tried configuring it with enabled: false ?

> On Feb 24, 2016, at 13:24, Julien Delplanque <[hidden email]> wrote:
>
> Hello,
>
> I wonder if there is a Spec widget to hold non-editable multi-line text?
>
> There is TextInputFieldModel but the text is editable.
>
> Thanks in advance,
>
> Julien
>
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile




Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

stepharo
In reply to this post by Julien Delplanque
Julien

we should create a simple chapter with questions/answers and we capture
there such knowledge.

Stef

Le 25/2/16 11:30, Julien Delplanque a écrit :

> Nice, can't wait to read it :)
>
> Julien
>
> On 25/02/16 10:58, Peter Uhnák wrote:
>> I'm sure it's documented somewhere… in any case new Spec
>> documentation is
>> emerging so let's not forget to make sure it's there.
>>
>> Peter
>>
>> On Thu, Feb 25, 2016 at 10:49 AM, Julien Delplanque <[hidden email]>
>> wrote:
>>
>>> Indeed but I mean, I was not able to deduce the fact that to have a
>>> widget
>>> holding not-editable multi-line text I have to use
>>>
>>> TextInputFieldModel and use #enabled: message...
>>>
>>> But maybe there is already documentation about that?
>>>
>>> Julien
>>>
>>>
>>>
>>> On 25/02/16 09:58, Peter Uhnák wrote:
>>>
>>>> Maybe this should be documented in the class comment of
>>>>> TextInputFieldModel?
>>>>>
>>>>> This is a feature of AbstractWidgetModel, so it applies to all
>>>>> widgets
>>>> (buttons, texts, selects, ...).
>>>>
>>>>    Peter
>>>>
>>>>
>>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: A Spec widget to hold non-editable multi-lines text?

Julien Delplanque
I totally agree, I will do it and add this one.
Maybe I will also make some research for similar content on the mailing
list.

Julien

On 27/02/16 13:08, stepharo wrote:

> Julien
>
> we should create a simple chapter with questions/answers and we
> capture there such knowledge.
>
> Stef
>
> Le 25/2/16 11:30, Julien Delplanque a écrit :
>> Nice, can't wait to read it :)
>>
>> Julien
>>
>> On 25/02/16 10:58, Peter Uhnák wrote:
>>> I'm sure it's documented somewhere… in any case new Spec
>>> documentation is
>>> emerging so let's not forget to make sure it's there.
>>>
>>> Peter
>>>
>>> On Thu, Feb 25, 2016 at 10:49 AM, Julien Delplanque <[hidden email]>
>>> wrote:
>>>
>>>> Indeed but I mean, I was not able to deduce the fact that to have a
>>>> widget
>>>> holding not-editable multi-line text I have to use
>>>>
>>>> TextInputFieldModel and use #enabled: message...
>>>>
>>>> But maybe there is already documentation about that?
>>>>
>>>> Julien
>>>>
>>>>
>>>>
>>>> On 25/02/16 09:58, Peter Uhnák wrote:
>>>>
>>>>> Maybe this should be documented in the class comment of
>>>>>> TextInputFieldModel?
>>>>>>
>>>>>> This is a feature of AbstractWidgetModel, so it applies to all
>>>>>> widgets
>>>>> (buttons, texts, selects, ...).
>>>>>
>>>>>    Peter
>>>>>
>>>>>
>>>>
>>
>>
>>
>
>