|
From: Dan W. <da...@wi...> - 2003-04-04 03:26:53
|
On Thu, 2003-04-03 at 21:01, Raymond Irving wrote:
> --- Benoit Marchant <mar...@ma...> wrote:
> > > lyr.setClass('',true) should do the trick.
> >
> > I would rather pass the layer's id. So if you pass
> > the layer's ID as
> > the style name, then you don't have to add class=""
> > in the div tag to
> > get it applied, and in that case noInlineStyle is
> > implicitely true. Now
> > if the name passed is different from the id, then
> > it would mean
> > generate a class="name".
> >
> > So in a case where you want both to not use inline
> > style and a class,
> > you would have to call it twice:
> > lyr.setClass(lyr.id); //Tell not to generate inline
> > style
> > lyr.setClass('blueBg'); //Make it generate
> > class=blueBg
> >
> > Does it make a second argument unnecessary ?
>
> Whether you call setClass() or not, the style name
> that matches the layer's id will render the layer
> according to the style values.
>
> To prevent the generation of inline styles the user
> could then do the following:
>
> lyr.setClass(null,true); // ignore inline style
> // ignoring inline styles should not be the default
> option
>
> If the user wants to use an additional styles, then
> he/she could do the follow:
>
> lyr.setClass('blue_style',true);
>
> Because the style name of the style object is the same
> as that of lyr.id we don't need to call
> setClass(lyr.id)
>
> Question:
> -------------
> Should we make setClass() a function of the
> dynlayer_base.js file? Or should we make it into an
> extension?
I vote for it in dynlayer_base.js
>
>
> --
> Raymond Irving
>
>
>
> > Benoit
> >
> > >
> > >> Now should
> > >> we on top of that be able to generate something
> > like
> > >> <DIV ID=myLayer
> > >> style="AStyle"></DIV>, probably,and of course be
> > >> able to set a class=""
> > >> As three options are valid ways of doing it, I
> > think
> > >> we should handled
> > >> them.
> > >
> > > So, you agree to setClass(name,noInlineStyle)?
> > >
> > > --
> > > Raymond Irving
> > >
> > >> Benoit
> > >>
> > >> On Thursday, April 3, 2003, at 02:57 PM, Raymond
> > >> Irving wrote:
> > >>
> > >>> Sounds ok to me, but how about the following:
> > >>>
> > >>> lyr.setClass(name,noPreStyle);
> > >>>
> > >>> When noPreStyle is set to true the api will
> > >> completely
> > >>> remove the style="..." string from <divs> and
> > will
> > >>> ignore bgcolor, width, height, left, top, etc
> > for
> > >>> <layers> and <ilayers>. The end result is that
> > >> layers
> > >>> will be created much faster.
> > >>>
> > >>> lyr.setClass('blue_style,box_style',true);
> > >>>
> > >>> This would require the user to specify all the
> > >> values
> > >>> (e.g. left,top width,etc) of the layer inside
> > the
> > >> css
> > >>> class.
> > >>>
> > >>> To give the user greater flexibility we could
> > then
> > >>> allow them to pass the value 'basic' to the
> > >> setClass()
> > >>> function to have the api only generate the left,
> > >> top,
> > >>> width and heigth values for the style object.
> > >>>
> > >>> lyr.setClass('blue_style','basic');
> > >>>
> > >>> What do you think?
> > >>>
> > >>> --
> > >>> Raymond Irving
> > >>>
> > >>>
> > >>> --- Kevin <ke...@ke...> wrote:
> > >>>> Hello,
> > >>>>
> > >>>> I've heard Raymond may be doing something in
> > the
> > >>>> area of
> > >>>> dynapi style objects? Sorry if I've got the
> > wrong
> > >>>> idea.
> > >>>>
> > >>>> Could we have a simple starting point by just
> > >>>> passing a class
> > >>>> name to the DynLayer constructor or e.g.
> > >>>> lyr.setClass('note').
> > >>>>
> > >>>> The string 'class="note"' would be inserted in
> > >> the
> > >>>> div/layer/ilayer
> > >>>> tag before the big 'style="..."' string so we
> > can
> > >>>> pick up a
> > >>>> prepared style sheet class from a
> > >> <style>...</style>
> > >>>> section.
> > >>>>
> > >>>> -
> > >>>> Kevin
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>
> > >
> >
> -------------------------------------------------------
> > >>>> This SF.net email is sponsored by: ValueWeb:
> > >>>> Dedicated Hosting for just $79/mo with 500 GB
> > of
> > >>>> bandwidth!
> > >>>> No other company gives more support or power
> > for
> > >>>> your dedicated server
> > >>>>
> > >>>
> > >>
> > >
> >
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > >>>> _______________________________________________
> > >>>> Dynapi-Dev mailing list
> > >>>> Dyn...@li...
> > >>>>
> > >>>
> > >>
> > >
> >
> http://www.mail-archive.com/dyn...@li.../
> > >>>
> > >>>
> > >>>
> > __________________________________________________
> > >>> Do you Yahoo!?
> > >>> Yahoo! Tax Center - File online, calculators,
> > >> forms, and more
> > >>> http://tax.yahoo.com
> > >>>
> > >>>
> > >>>
> > >>
> > >
> >
> -------------------------------------------------------
> > >>> This SF.net email is sponsored by: ValueWeb:
> > >>> Dedicated Hosting for just $79/mo with 500 GB of
> > >> bandwidth!
> > >>> No other company gives more support or power for
> > >> your dedicated server
> > >>>
> > >>
> > >
> >
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > >>> _______________________________________________
> >
> === message truncated ===
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://www.mail-archive.com/dyn...@li.../
--
Dan Willemsen <da...@wi...>
|