This is a very basic js
function and css
to provide a simple floating message that disappears after a given time.
The class is really just a function working with a css that you can use or just implement your own version.
To adjust the position of the messages, you can change right
in the .floatingMessageContainer
class.
css
To make messages come in from the top, use addFloatawayMsg('msg', 'T')
To make messages come in from the bottom, use addFloatawayMsg('msg', 'B')
html :: Simple usage
To adjust the timing of the fade away, there is a third argument for duration
(defaulting to 3000ms).
To adjust the console logging from .log to .error you can use the fourth argument isError
(defaulting to false).
To adjust the styling of the message, you can include a fifth argument addClassNm
to include an additional class name to the message div.
js
Also see
articles/Implementing-a-Monaco-Editorsquarearticles/iConnectionTestsquarearticles/image-zoomingsquarearticles/javascript-camerasquarearticles/list-editsquarearticles/minifierssquarearticles/opayosquarearticles/table-drag-sortersquarearticles/typewatchsquareprojects/MFCalendarPopupsquareprojects/MFChartColumnsquareprojects/MFColorPickersquareprojects/MFColorPickerBasicsquareprojects/MFColumnDataBarsquareprojects/MFColumnGradientsquareprojects/MFCropCornerUIsquareprojects/MFFloatawayMsgsquareprojects/MFPanelssquareprojects/MFSelectorsquareprojects/MFShowConsolesquare
Comments
New Comment