H
H
hollanditkzn2017-06-01 14:46:15
Yii
hollanditkzn, 2017-06-01 14:46:15

How to set anchor for gridview?

How to set name attribute in gridview. That is, I have a demos.krajee.com/grid widget And I use expand row there, I just need to implement anchors there. I need that when the notification is clicked, it should go as an anchor to this order and the order should open. Just i tried in gridview tried many times options in columns

'contentOptions' => ['name' => $model->id_zakaz, 'style' => 'border-radius: 19px 0px 0px 19px;'],

And many others, but it's not clear how to set the anchor in the gridview

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-06-01
@hollanditkzn

The anchor is not set on the gridview, but on the link.
At the same time, some line or block will have an id equal to the anchor.
and, accordingly, the link leading there, for example, this
<a href="#zakaz-12">тык</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question