KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to set property with newly created inputs widget? #3101

Closed MyU3A Incorporated opened this topic on on Jul 22, 2023 - 2 comments

MyU3A Incorporated commented on Jul 22, 2023

I've tried things like below but both get "syntax error". Any suggestion would be greatly appreciated.

<?php TextBox::create(["name"=>"limit"])->"value"="hello";
<?php TextBox::create(["name"=>"limit"]); limit->"value"="hello";
KoolReport commented on Jul 22, 2023

You should do directly:

<?php
    TextBox::create([
        "name"=>"limit",
        "value"=>"hello",
    ]);
?>
MyU3A Incorporated commented on Jul 23, 2023

Thanks for your quick reply. Your answer worked perfectly.

I have more TextBox widget related questions:

  1. What is created widget object name (for accessing with "$object_name->")?

  2. How do I control the TextBox size, i.e. the number of characters it can hold?

  3. What does the TextBox property "size" do? Setting it to "sm", "md" or "lg" does not seem to do anything.

  4. What does the TextBox properties "frontText" and "backText" do? Setting them also seems to do nothing.

  5. What is difference between a Widget's property and attribute?

  6. Where are TextBox attributes listed and described?

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None