Tooltip html formatted in angular 2 - html

Is there a tooltip that reads html format text in angular 2?
I have not found anything about this in this forum

I like to use PrimeNg as a component library for angular development.
It provides a lot of useful components and it also has a tooltip component.
https://www.primefaces.org/primeng/#/tooltip
Make sure you put the [escape] property to false to support HTML tags in the content of the tooltip.

Related

How to upload a screenshot/image using Wicket

I want user to be able to easily upload screenshots into my application. (preferably without to many js/ajax trickery)
Is there a standard way in Wicket to allow an image to be pasted in some FormComponent (textarea? div with contenteditable?) and used as a regular input, so that when the form is posted, I get a byte[]/stream in the Java code?
You have to use <input type="file"> in the markup and FileUpload component at the Java/server code.
If you need fancier ways than Upload button than you will need to use some Javascript library.
Here is the plain Wicket example
If you use Bootstrap then you may use Wicket-Bootstrap integrations like FileInput or DropZone

Disable part of markup from compilation in Angular2/Ionic2

Is there a way to make part of markup ignored during Angular2 compilation? The issue is i have additional library that uses jQuery and <template> tags and because of Angular the <template> html tags are not present in DOM when the library tries to reach it with $('template') selector.
A workaround is to inject needed HTML markup after containing container init. So i've made simple $('container')[0].innerHtml = 'markup with <template></template>' in one of my angular2 components in ngOnInit method.

ng2-table angular2 rc4 HTML tags

I have a angular2 component which is generating data to populate my ng2-table, but I cannot seem to put HTML tags into a cell. Instead the cell renders as such:
https://github.com/valor-software/ng2-table/issues/51
I've tried to modify the js file that is coming down as indicated as an older fix but changing the markup to the [innerHtml] angular2 element does not appear to be accepted.
It seems that others are having this problem as well, has anyone else found a solution? I'm aware that ag-grid is capable of doing this, but we need to use ng2-table as it supports bootstrap pagination which ag-grid does not appear to.

Where does Angular JS fit in the browser rendering process?

From my understanding the browser rendering process is essentially happening in the following steps:
HTML is parsed into DOM tree
DOM tree is converted to a render tree
Layout
Paint
Where does Angular JS come in the picture here? For example if I have an expression like
<div>{{test}}</div>
or
<div ng-include="..."></div>
Is it right to think that Angular does the interpolation or HTML injection, and then the browser takes the resulting HTML code, and goes through steps 1-4?
Angular JS documentation says:
When Angular starts your application, it parses and processes this
new markup from the template using the compiler. The loaded,
transformed and rendered DOM is basically the view
Here a template means:
HTML code that contains Angular specific attributes.
For more information on how AngularJs works and what it can do, please read the documentation provided:
https://docs.angularjs.org/guide/concepts
There is an in-depth tutorial which provide more information on it.
I hope this could help you get started with it :)

How to add images into Adobe Flex RichTextEditor?

How to add images into Adobe Flex RichTextEditor control? I mean using a button =)
So we have some text editor with RTE a-la
editor screenshot http://livedocs.adobe.com/flex/3/html/images/RTE1.png
We want to get into its content images using some button. How to do such thing?
BTW: I found this http://anotherflava.com/2009/01/12/flex-xhtml-rich-text-editor-w-images/ but I really do not understand how to make it work so if any one can publish simple project with simple (DIRTY IS OK) source it would be grate!)))
RichTextEditor is a complex component which consist of few small components and TextArea. So the problem is how to insert image in TextArea.
TextArea can render simple HTML and <img> tag is supported. More about htmlText property here.
So
var myTextEditor:RichTextEditor = new RichTextEditor();
myTextEditor.htmlText = "<img src='myImage.jpg' />"