[1.0] TextField LabelCls

  1. #1

    [1.0] TextField LabelCls

    Hi,

    Has version 1.0 loose LabelCls property?

    Now, I only can find LabelStyle, but I prefer better to define a global style.

  2. #2

    RE: [1.0] TextField LabelCls

    Hi Dominik,

    It appears the .LabelCls was an extra property we had added, although some refinements were made with the v1.0 build and it was removed with a preference to use the .ItemCls property.

    The following demonstrates using the .ItemCls property to define a specific label style.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Example</title>
        
        <style type="text/css">
            .required .x-form-item-label {
                font-weight : bold;
                color : red;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
                
            <ext:FormPanel runat="server" Title="Example" Height="185" Width="350" Padding="5">
                <Items>
                    <ext:TextField runat="server" FieldLabel="My Label" ItemCls="required" />
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  3. #3

    RE: [1.0] TextField LabelCls

    Hi again,

    It's just what I need.

    But if fields are inside a cell into a TableLayout, the ItemCls attribute is not rendered...

    Is it possible?



Similar Threads

  1. jQuery and TextField
    By MildLimit in forum 1.x Help
    Replies: 4
    Last Post: Mar 31, 2011, 2:00 PM
  2. EXT TEXTFIELD
    By ankit in forum 1.x Help
    Replies: 1
    Last Post: Apr 17, 2010, 4:59 AM
  3. html tag in textfield
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Dec 21, 2009, 9:33 AM
  4. [CLOSED] Checkbox LabelCls
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 18, 2009, 6:48 AM
  5. from a TextField
    By davromu in forum 1.x Help
    Replies: 2
    Last Post: Jun 17, 2009, 7:00 AM

Posting Permissions