Span in IW Bootstrap - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Span in IW Bootstrap (/thread-687.html) |
Span in IW Bootstrap - LorenSzendre - 09-23-2018 Does anyone know how to get a span in IW Bootstrap? I added a TIWBSRegion and thought I could set the TagType to span, but it only gave me the options for div, headers and p. So I tried TIWBSText -- and it started out well -- I could set the Tag to span. But then I found that this component cannot act as a container. There is no TIWBSSpan component. What is the solution? How do I put a container component on my page that has the tag of span? RE: Span in IW Bootstrap - jeroen.rottink - 09-26-2018 Hi LozenSzendre, The TIWBSRegion only gives an option for div, h1..h6 and p while TIWBSCustomRegion has full options in the form of a string TagName... I don't see the reason for this enumeration either. You can of course create your own component. Other simple workaround for this moment is using OnHTMLTag event Code: procedure TFrame2.IWFrameRegionHTMLTag(ASender: TObject; ATag: TIWHTMLTag); RE: Span in IW Bootstrap - LorenSzendre - 09-26-2018 (09-26-2018, 07:46 AM)jeroen.rottink Wrote: Hi LozenSzendre,Thanks for your answer! RE: Span in IW Bootstrap - LorenSzendre - 09-26-2018 (09-26-2018, 11:34 AM)LorenSzendre Wrote:TIWBSRegion on my machine now has bsttSpan in the Object Inspector)))(09-26-2018, 07:46 AM)jeroen.rottink Wrote: Hi LozenSzendre,Thanks for your answer! I guess I'd better push the change to the repository so I don't mess up my project when I upgrade.... |