This is a very basic standalone javascript function (with associated css) used 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/How-to-format-html-ready-for-console.logsquarearticles/Implementing-a-Monaco-Editorsquarearticles/iConnectionTestsquarearticles/javascript-camerasquarearticles/list-editsquarearticles/minifierssquarearticles/opayosquarearticles/table-drag-sortersquarearticles/typewatchsquareprojects/MFCalculatorPopupsquareprojects/MFCalendarPopupsquareprojects/MFChartColumnsquareprojects/MFColorPickersquareprojects/MFColorPickerBasicsquareprojects/MFColumnDataBarsquareprojects/MFColumnGradientsquareprojects/MFCropCornerUIsquareprojects/MFFloatawayMsgsquareprojects/MFHourglasssquareprojects/MFLazyImagessquareprojects/MFPanZoomsquareprojects/MFPanelssquareprojects/MFScrollIndicatorssquareprojects/MFSelectorsquareprojects/MFShowConsolesquareprojects/MFTableCellSummingsquare
Comments
New Comment