Project

General

Profile

Actions

Support #6934

closed

addStyleClass" doesn't work under server.xxxxx in project wt-homepage

Added by Karl Estermann about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/02/2019
Due date:
% Done:

0%

Estimated time:

Description

i try to use "addStyleClass" under the project wt-homepage. That doesn't work. Under the project Widgetgallery it works. Which class must I use under "server.addResource" there is another one.

Call under wt-homepage.

examplesMenu_->addTab(helloWorldExample(),

tr("hello-world"))->setPathComponent("");

<<<

std::unique_ptr WtHome::helloWorldExample()

{

std::cout << "helloWorld " << this << \" \" << std::endl;

// return example("home.examples.hello", "hello");

// return form();

// return blog();

return tables();

}

<<<<<

#include "examples/PlainTable.cpp"

#include "examples/StyledTable.cpp"

#include "examples/VirtualModel.cpp"

#include "examples/SmallTableView.cpp"

#include "examples/LargeTableView.cpp"

#include "examples/ComboDelegateTable.cpp"

std::unique_ptr WtHome::tables()

{

auto result = cpp14::make_unique("treestables-Tables");

result->bindWidget("PlainTable", PlainTable());

result->bindWidget("StyledTable", StyledTable());

return std::move(result);

}

all other widget are working but addStyleClass is not working.

table_->addStyleClass("table form-inline");

table_->addStyleClass("table table-bordered");

there are a work a round

Actions #1

Updated by Roel Standaert over 4 years ago

  • Tracker changed from Bug to Support
  • Status changed from New to Closed

I'm going around cleaning up older issues. I can't really tell what your problem is, and the formatting is a bit messed up. If you still have an issue, could you maybe attach your source code, indicating where you're trying to add a style class?

I'm closing this for now, but feel free to reopen.

Actions

Also available in: Atom PDF