AppML ဒေတာ


AppML ၏ အဓိကရည်ရွယ်ချက်မှာ HTML စာမျက်နှာများသို့ ဒေ တာ များ ပေးဆောင်ရန်ဖြစ်သည်။


AppML ကို Data နှင့်ချိတ်ဆက်ခြင်း။

  • AppML သည် ကိန်းရှင်များမှ အချက်အလက်များကို ပြသနိုင်သည်။
  • AppML သည် ဖိုင်များမှ အချက်အလက်များကို ပြသနိုင်သည်။
  • AppML သည် ဒေတာဘေ့စ်များမှ အချက်အလက်များကို ပြသနိုင်သည်။

JavaScript Object ကို အသုံးပြု၍ AppML

HTML နှင့် Data ခွဲခြားရန် ဘုံနည်းလမ်းမှာ JavaScript object တစ်ခုတွင် data များကို သိမ်းဆည်းရန်ဖြစ်သည်။

ဥပမာ

<table appml-data="dataObj">
<tr>
  <th>Customer</th>
  <th>City</th>
  <th>Country</th>
</tr>
<tr appml-repeat="records">
  <td>{{CustomerName}}</td>
  <td>{{City}}</td>
  <td>{{Country}}</td>
</tr>
</table>

<script>
var dataObj = {
"records":[
{"CustomerName":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"},
{"CustomerName":"Ana Trujillo Emparedados y helados","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Antonio Moreno Taquería","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Around the Horn","City":"London","Country":"UK"},
{"CustomerName":"B's Beverages","City":"London","Country":"UK"},
{"CustomerName":"Berglunds snabbköp","City":"Luleå","Country":"Sweden"},
{"CustomerName":"Blauer See Delikatessen","City":"Mannheim","Country":"Germany"},
{"CustomerName":"Blondel père et fils","City":"Strasbourg","Country":"France"},
{"CustomerName":"Bólido Comidas preparadas","City":"Madrid","Country":"Spain"},
{"CustomerName":"Bon app'","City":"Marseille","Country":"France"},
{"CustomerName":"Bottom-Dollar Marketse","City":"Tsawassen","Country":"Canada"},
{"CustomerName":"Cactus Comidas para llevar","City":"Buenos Aires","Country":"Argentina"},
{"CustomerName":"Centro comercial Moctezuma","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Chop-suey Chinese","City":"Bern","Country":"Switzerland"},
{"CustomerName":"Comércio Mineiro","City":"São Paulo","Country":"Brazil"}
]};
</script>

JSON ဖိုင်ကို အသုံးပြုနေသည့် AppML

HTML နှင့် Data ကိုခွဲခြားရန် နောက်ထပ်ဘုံနည်းလမ်းမှာ JSON ဖိုင်တွင် ဒေတာကို သိမ်းဆည်းရန်ဖြစ်သည်-

customers.js

{
"records":[
{"CustomerName":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"},
{"CustomerName":"Ana Trujillo Emparedados y helados","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Antonio Moreno Taquería","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Around the Horn","City":"London","Country":"UK"},
{"CustomerName":"B's Beverages","City":"London","Country":"UK"},
{"CustomerName":"Berglunds snabbköp","City":"Luleå","Country":"Sweden"},
{"CustomerName":"Blauer See Delikatessen","City":"Mannheim","Country":"Germany"},
{"CustomerName":"Blondel père et fils","City":"Strasbourg","Country":"France"},
{"CustomerName":"Bólido Comidas preparadas","City":"Madrid","Country":"Spain"},
{"CustomerName":"Bon app'","City":"Marseille","Country":"France"},
{"CustomerName":"Bottom-Dollar Marketse","City":"Tsawassen","Country":"Canada"},
{"CustomerName":"Cactus Comidas para llevar","City":"Buenos Aires","Country":"Argentina"},
{"CustomerName":"Centro comercial Moctezuma","City":"México D.F.","Country":"Mexico"},
{"CustomerName":"Chop-suey Chinese","City":"Bern","Country":"Switzerland"},
{"CustomerName":"Comércio Mineiro","City":"São Paulo","Country":"Brazil"}
]
}

AppML ဖြင့် သင်သည် appml-data attribute တွင် ဒေတာအရင်းအမြစ်အဖြစ် JSON ဖိုင်ကို သတ်မှတ်နိုင်သည်-

ဥပမာ

<table appml-data="customers.js">
<tr>
  <th>Customer</th>
  <th>City</th>
  <th>Country</th>
</tr>
<tr appml-repeat="records">
  <td>{{CustomerName}}</td>
  <td>{{City}}</td>
  <td>{{Country}}</td>
</tr>
</table>

AppML ဒေတာဘေ့စ်ကိုအသုံးပြုခြင်း။

ဝဘ်ဆာဗာတစ်ခုမှ အကူအညီအနည်းငယ်ဖြင့်၊ သင်သည် သင်၏အပလီကေးရှင်းအား SQL ဒေတာဖြင့် ကျွေးမွေးနိုင်ပါသည်။

ဤဥပမာသည် MySQL ဒေတာဘေ့စ်မှဒေတာကိုဖတ်ရန် PHP ကိုအသုံးပြုသည်-

ဥပမာ

<table appml-data="https://www.w3schools.com/appml/customers.php">
<tr>
  <th>Customer</th>
  <th>City</th>
  <th>Country</th>
</tr>
<tr appml-repeat="records">
  <td>{{CustomerName}}</td>
  <td>{{City}}</td>
  <td>{{Country}}</td>
</tr>
</table>

AppML ၏စွမ်းအား

သင်သည် AppML ၏ စွမ်းအားကို ရှာဖွေတွေ့ရှိတော့မည်ဖြစ်သည်။

AppML သည် သင့်အား ဒေတာ၊ ထိန်းချုပ်ကိရိယာများနှင့် မော်ဒယ်များကို ပေးဆောင်နိုင်သည်-

  • အလွန်လွယ်ကူသော HTML Application Development
  • အလွန်လွယ်ကူသော မော်ဒယ်၊ ပုံတူရိုက်ခြင်းနှင့် စမ်းသပ်ခြင်း။

HTML စာမျက်နှာတစ်ခုအတွင်း သင်နှစ်သက်သလောက် AppML အပလီကေးရှင်းများစွာကို သင်ထည့်နိုင်သည်။

AppML သည် စာမျက်နှာ၏ အခြားအစိတ်အပိုင်းများကို အနှောင့်အယှက်မရှိပါ။

သင့်တွင် HTML၊ CSS နှင့် JavaScript လွတ်လပ်မှု အပြည့်ရှိသည်။

AppML သည် CRUD ဝဘ်အက်ပလီကေးရှင်း အပြည့်အစုံကို ဖွံ့ဖြိုးတိုးတက်စေရန်အတွက် အသုံးပြုနိုင်သည်။

CRUD- C reate ၊ R ead ၊ U pdate၊ D elete။

 AppML ၏စွမ်းအားကိုရှာဖွေရန်- AppML Demo ကိုကြည့်ပါ