Open SergeyDvornikovSetronica opened 4 years ago
Describe the bug Don't work markdown, as a result there is no callback on click on the link
Expected behavior Markdown is work, link call calback
Describe the bug
The icon
method does not work correctly:
closeable(true)
is used, the icon
method with a value changes the icon on the close
"button"icon
method results in the display of the <i class ="undefined">
tag. This applies to the close
button, as is the case with the previous paragraphnull
for icon
method results in the display of the <i class ="null">
tag. With close
as is the case with the previous paragraphExpected behavior
icon
method should add an icon in front of the text regardless of the presence of a close
buttonnull
should remove iconDescribe the bug
The buttons
method leads to an error:
as a result, you cannot set buttons or get a list of them
Expected behavior
The buttons
method should allow you to add or receive a list of buttons, like http://ui.tradeshift.com/v12/#components/notes/
Describe the bug
The text
method does not work correctly:
null
value causes the note to be displayed without a message (20px thin strip)Expected behavior
null
or empty string (''
) throw exception, if you want to close a note, you must call the close
methodWe have two types of Notes. One is the page level note, which you can use api to create. such as:
ts.ui.Note({
icon: 'ts-icon-heart',
text: 'This page explains how to use the Note component with some nice examples.',
onclose: function() {
ts.ui.Notification.success('The Note is gone...');
}
});
The other one is inline Note, which give information about a certain section of the page. You can't get events and callbacks in the inline Note. There is only some css on it.
The code you made to get the spirit (const note = ts.ui.get('#test-note');
). We don't have the api for it to change the inline text and close event callback.
We don't have the api for it to change the inline text and close event callback. Yes, but it would be very useful (albeit sometimes) to have such an API in the same way as everything that I described in this issue
Is there any blocking issue on production? We are making new Note in elements. We prefer to make it in the new Notes if it is not emergency
This is absolutely not emergency. Anyway, now, but everything can change
Describe the bug Missing
onclose
eventTo reproduce Please, use https://jsfiddle.net/wgqsn5p9/10/
Expected behavior
onclose
should be called after clicking on the cross Ideally, there should be a callback, with the ability to prevent note closureFramework usage AngularJS 1.5.11 TS UI 12.3.6
Desktop (please complete the following information):