41 lines
609 B
TypeScript
41 lines
609 B
TypeScript
|
|
namespace formgen.info
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
export class class_info
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
private content : string;
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
public constructor(
|
||
|
|
content : string
|
||
|
|
)
|
||
|
|
{
|
||
|
|
this.content = content;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
public setup(
|
||
|
|
element_target : Element
|
||
|
|
) : Promise<void>
|
||
|
|
{
|
||
|
|
const element_bubble : Element = document.createElement("span");
|
||
|
|
element_bubble.classList.add("formgen-info");
|
||
|
|
element_bubble.setAttribute("title", this.content);
|
||
|
|
element_bubble.textContent = "(?)";
|
||
|
|
element_target.appendChild(element_bubble);
|
||
|
|
return Promise.resolve<void>(undefined);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|