Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Sample

Thai

ตัวอย่างโค้ด

English
The following script is used in a method of a Userview Theme plugin
Thai

สคริปต์ต่อไปนี้ถูกใช้ในเมธอดของปลั๊กอินธีม Userview

Code Block
languagejava
import java.util.Map;
import java.util.HashMap;
import org.joget.apps.userview.service.UserviewUtil;
 
//following script is used in a method of userview theme
Map data = new HashMap();
data.put("theme", this);
data.put("message", "hello world!!");
String html = UserviewUtil.getTemplate(this, data, "/templates/userview/test.ftl");

Methods

Thai

กระบวนการ

getTemplate
public static java.lang.String getTemplate(org.joget.apps.userview.model.UserviewTheme theme, java.util.Map data, java.lang.String templatePath)

...