When a Spec UI is build, the spec are looked up on class side.

But in some special cases you can provide directly a SpecLayout object to a 
model.


Why on class side? 
The goal was to have a static description of a widget layout 

Ben

On 22 Nov 2013, at 11:27, Bahman Movaqar <bah...@bahmanm.com> wrote:

> On 11/22/2013 13:51, prova email wrote:
>> Hi Bahman,
>> i just finished to read the second Spec Tutorial, great tuto as
>> always. Only one question: why do you define the defaultSpec in the
>> Class-side?
>> 
> 
> I'm glad you found it useful.  RE `defaultSpec`, I believe that's the
> way it is supposed to be. When I was writing the episodes, I had to read
> the `Spec-Examples` to figure out how to do stuff and all the examples
> defined `defaultSpec` as a class-side method.
> 
> Maybe I'm doing it wrong. I'd appreciate if Benjamin could shed a light
> on this.
> 
> -- 
> Bahman Movaqar  (http://BahmanM.com)
> 
> ERP Evaluation, Implementation & Deployment Consultant
> PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
> 
> 

Reply via email to