#358 Created API method for create HTML widget