Callout - with newline

  1. #1

    Callout - with newline

    Support,

    How can i create a new line in my callout? I tried \n and <br/> but neither worked. In the example below, i use the <br/> to show where i want the break.

    thanks
    /Z

                        <ext:DateField
                            ID="testDt"
                            runat="server"
                            IndicatorText="*"
                            Width="375"
                            IndicatorCls="red-text"
                            Padding="5"
                            DataIndex="test"
                            AllowBlank="false"
                            ReadOnly="false"
                            FieldLabel="Date">
                            <Callouts>
                                <ext:Callout runat="server" ID="Callout1" Title="Dates" Trigger="Manual" UI="Primary" Alignment="Right" StyleSpec="z-index: 20000;" DismissDelay="7000">
                                    <BodyWidget>
                                        <ext:Label runat="server" Text="Some message first line.<BR/>And now the second line" />
                                    </BodyWidget>
                                </ext:Callout>
                            </Callouts>
                        </ext:DateField>
  2. #2
    Hello, /Z!

    Just use Html= instead of Text= in the ext:Label definition and you should be good to go.

    In fact, you can simplify your test case to simply pass Html= straight to the ext:Callout block, like this:

    <Callouts>
        <ext:Callout runat="server" ID="Callout1" Title="Dates" Trigger="Hover" UI="Primary" Alignment="Right" StyleSpec="z-index: 20000;" DismissDelay="7000"
            Html="Some message first line.<BR/>And now the second line" />
    </Callouts>
    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Callout shows Behind Window
    By Z in forum 5.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 12, 2020, 6:26 PM
  2. Replies: 4
    Last Post: Jul 26, 2016, 8:55 PM
  3. [CLOSED] X.Msg.Show with newLine characters
    By extnetGA in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 19, 2015, 4:36 PM
  4. Callout Problem
    By hakandonmez in forum 3.x Help
    Replies: 0
    Last Post: Mar 01, 2015, 10:02 AM
  5. Replies: 6
    Last Post: Sep 02, 2010, 5:36 AM

Posting Permissions